From 31e5d50cabcd78624e2c2984b41dfc37ec9200f0 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 22 Jan 2012 02:08:09 -0500 Subject: Run subcommands in subshells. This will prevent subcommands from affecting opkbuild's current working directory. --- (limited to 'src/opkbuild') 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. -- cgit v0.9.1