summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-10-09 17:19:04 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-10-09 17:19:04 (GMT)
commit892ef743c4d62c63f460ef67dc14cd1e5cd77792 (patch)
treec99cd9dea0908c1af453bd38bb681571df4819fd
parent315b15109f51fd534c99d4c7a5e3abab8568f085 (diff)
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>
-rw-r--r--scripts/crosstool-NG.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in
index 2057f26..c7893ca 100644
--- a/scripts/crosstool-NG.sh.in
+++ b/scripts/crosstool-NG.sh.in
@@ -578,7 +578,7 @@ if [ "${CT_ONLY_DOWNLOAD}" != "y" -a "${CT_ONLY_EXTRACT}" != "y" ]; then
fi
fi
if [ ${do_it} -eq 1 ]; then
- do_${step}
+ ( do_${step} )
if [ "${CT_STOP}" = "${step}" ]; then
do_stop=1
fi