From 4989cfaf781b56925a834938b9c81ab20c6ed0f2 Mon Sep 17 00:00:00 2001 From: Abraham Murciano Date: Tue, 21 Dec 2021 16:50:13 +0200 Subject: [PATCH] set -e on install script make the script exit if any command fails --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 5535f26..ac093dc 100644 --- a/install.sh +++ b/install.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + ADVCPMV_VERSION=${1:-0.9} CORE_UTILS_VERSION=${2:-9.0} @@ -15,4 +17,4 @@ rm coreutils-$CORE_UTILS_VERSION.tar.xz cp ./src/cp ../advcp cp ./src/mv ../advmv ) -rm -rf coreutils-$CORE_UTILS_VERSION \ No newline at end of file +rm -rf coreutils-$CORE_UTILS_VERSION