summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]bootstrap-stage2-build.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/bootstrap-stage2-build.sh b/bootstrap-stage2-build.sh
index f9313e3..52c2d21 100644..100755
--- a/bootstrap-stage2-build.sh
+++ b/bootstrap-stage2-build.sh
@@ -50,10 +50,11 @@ build_packages()
{
cp -p pkg/src-*_src_all.opk root1
sudo chroot root1 sh -c 'opkg install /src-*_src_all.opk'
- sudo chroot root1 sh -c 'for dir in /usr/src/*/; do
- cd "${dir}"
- opkbuild -C
- done'
+ sudo chroot root1 sh -c 'set -e;
+ for dir in /usr/src/*/; do
+ cd "${dir}"
+ opkbuild -C
+ done'
}
main "${@}"