summaryrefslogtreecommitdiffhomepage
path: root/once/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'once/install.sh')
-rwxr-xr-xonce/install.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/once/install.sh b/once/install.sh
index cbdd52b..07559f1 100755
--- a/once/install.sh
+++ b/once/install.sh
@@ -1,5 +1,7 @@
#!/bin/sh
+set -eu
+
if [ $# = 1 ]; then
case "$1" in
--output=*)
@@ -16,19 +18,19 @@ if [ -z "$SYSROOT" ]; then
echo '$SYSROOT is not set!'
exit 2
else
- mkdir -p "$SYSROOT" || exit 2
+ mkdir -p "$SYSROOT"
fi
for tarball in /tarballs/*.tar.gz; do
echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
echo extracting files from $tarball
echo ..................................................
- tar -xpvf $tarball -C "$SYSROOT" || exit 2
+ tar -xpvf $tarball -C "$SYSROOT"
echo ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
echo
done
-/custom.sh || exit 2
+/custom.sh
echo
echo