From cd2b89169bac984ea80691d93a527caac9aface6 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 3 Nov 2021 00:33:27 +0000 Subject: once/install.sh: stricly trap all failures. --- once/install.sh | 8 +++++--- 1 file 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 -- cgit v1.2.3