From 36ecb5f530cdf62e3fbbbdae3b87e36f5d540803 Mon Sep 17 00:00:00 2001 From: NieDzejkob Date: Sun, 14 May 2017 16:05:50 +0200 Subject: Stop the script on the first error using the set -e command --- build.sh | 1 + install.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/build.sh b/build.sh index 8a88890..f9f6f6e 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,5 @@ #!/bin/sh +set -e make -C gcc clean make -C gcc old mv gcc/old_agbcc . diff --git a/install.sh b/install.sh index 00aa8bf..f411df8 100755 --- a/install.sh +++ b/install.sh @@ -1,4 +1,5 @@ #!/bin/sh +set -e if [ "$1" != "" ]; then mkdir -p $1/tools/agbcc mkdir -p $1/tools/agbcc/bin -- cgit v1.2.3