scripts: execute each steps in a subshell
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Oct 09 19:19:04 2011 +0200 (2011-10-09)
changeset 2707652e56d6d35a
parent 2706 30c89d1f74a4
child 2715 1c36d654c976
scripts: execute each steps in a subshell

To avoid variable leakage from one step to another, isolate the
steps from each others by running them in their own sub-shell.

This avoids variables leaking from one step to the others.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
scripts/crosstool-NG.sh.in
     1.1 --- a/scripts/crosstool-NG.sh.in	Tue Oct 11 22:21:48 2011 +0200
     1.2 +++ b/scripts/crosstool-NG.sh.in	Sun Oct 09 19:19:04 2011 +0200
     1.3 @@ -578,7 +578,7 @@
     1.4              fi
     1.5          fi
     1.6          if [ ${do_it} -eq 1 ]; then
     1.7 -            do_${step}
     1.8 +            ( do_${step} )
     1.9              if [ "${CT_STOP}" = "${step}" ]; then
    1.10                  do_stop=1
    1.11              fi