aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-04-27 06:15:33 -0500
committerRob Landley <rob@landley.net>2020-04-27 06:15:33 -0500
commit10acc65a056585794e255734a83b6232bcc0a4a8 (patch)
treebf0a19e52400586024be444d8c360d53ba313190 /scripts
parent57353ae099a4c41808ed95b58b03d6b0ef9406d8 (diff)
downloadtoybox-10acc65a056585794e255734a83b6232bcc0a4a8.tar.gz
Fix install error return in non-airlock case and slight cleanup.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install.sh17
1 files changed, 5 insertions, 12 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index 92d81574..cac8b237 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -92,7 +92,7 @@ do
fi
done
-[ -z "$AIRLOCK" ] && exit 0
+[ -z "$AIRLOCK" ] && exit $EXIT
# --airlock creates a single directory you can point the $PATH to for cross
# compiling, which contains just toybox and symlinks to toolchain binaries.
@@ -111,13 +111,10 @@ PENDING="dd diff expr ftpd less tr vi wget awk sh sha512sum sha256sum unxz xzcat
# "gcc" should go away for llvm, but some things still hardwire it
TOOLCHAIN="as cc ld gcc objdump"
-if [ ! -z "$AIRLOCK" ]
-then
-
- # Tools needed to build packages
- for i in $TOOLCHAIN $PENDING $HOST_EXTRA
- do
- if [ ! -f "$i" ]
+# Tools needed to build packages
+for i in $TOOLCHAIN $PENDING $HOST_EXTRA
+do
+ if [ ! -f "$i" ]
then
# Loop through each instance, populating fallback directories (used by
# things like distcc, which require multiple instances of the same binary
@@ -145,8 +142,4 @@ then
fi
done
-
-
-fi
-
exit $EXIT