summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-01-22 02:08:09 (EST)
committer P. J. McDermott <pjm@nac.net>2012-01-22 02:08:09 (EST)
commit31e5d50cabcd78624e2c2984b41dfc37ec9200f0 (patch)
tree831e4baf208715d1b81c1b9ada6421f8581e3ef3 /src
parent8d1c43947c4c4e9c1a7d3a4b78c5bc48b4b9617f (diff)
Run subcommands in subshells.
This will prevent subcommands from affecting opkbuild's current working directory.
Diffstat (limited to 'src')
-rw-r--r--src/opkbuild6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/opkbuild b/src/opkbuild
index b5b0ff0..729a26a 100644
--- a/src/opkbuild
+++ b/src/opkbuild
@@ -102,9 +102,9 @@ for file in ../*; do
;;
esac
done
-${uid0_cmd} oh-gencontrol -s || error "${srcpkg}-src"
-${uid0_cmd} oh-buildopk ${srcpkg}-src || error "${srcpkg}-src"
-${uid0_cmd} rm -Rf ${srcpkg}-src.data || error "${srcpkg}-src"
+( ${uid0_cmd} oh-gencontrol -s;) || error "${srcpkg}-src"
+( ${uid0_cmd} oh-buildopk ${srcpkg}-src;) || error "${srcpkg}-src"
+( ${uid0_cmd} rm -Rf ${srcpkg}-src.data;) || error "${srcpkg}-src"
printf 'opkbuild: Package "%s" complete!\n\n' "${srcpkg}-src"
# Build other binary packages.