diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-02-14 14:07:18 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-02-14 14:07:18 +0000 |
commit | 1d53f02329e50780fb80a06d133f0a998c965ef1 (patch) | |
tree | 8a1e095ff8bb788854bf36ef63128bab4ddc0599 /run-bootstrap-in-chroot | |
parent | 578774d29ad5271b4536b85a665cc942cd47c990 (diff) | |
download | morph-1d53f02329e50780fb80a06d133f0a998c965ef1.tar.gz |
Make run-bootstrap-in-chroot unless required env vars are set
This removes the previous action which tried to be interactive,
and let the user continue the build anyway, but since the build
will fail in that case, it's better to not let the user continue.
Also simplifies things in general.
Diffstat (limited to 'run-bootstrap-in-chroot')
-rwxr-xr-x | run-bootstrap-in-chroot | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/run-bootstrap-in-chroot b/run-bootstrap-in-chroot index 4d3ab0d5..ee19bced 100755 --- a/run-bootstrap-in-chroot +++ b/run-bootstrap-in-chroot @@ -37,10 +37,8 @@ if ([ "x$DEBIAN_MIRROR" = x ] && echo DEBIAN_MIRROR is unspecified >&2) || ([ "x$GIT_BUNDLES" = x ] && echo GIT_BUNDLES is unspecified >&2) || ([ "x$LFS_MIRROR" = x ] && echo LFS_MIRROR is unspecified >&2) then - echo It is recommended that mirrors are used - if test -t 0 -o -p /dev/stdin; then #check for interactive stdin - read -p "continue anyway? " || exit 1 - fi + echo You have to set DEBIAN_MIRROR and other environment variables 1>&2 + exit 1 fi #DEBIAN_MIRROR="http://192.168.1.185/debian" #LFS_MIRROR=http://192.168.1.185/lfs/ |