Stop the script on the first error using the set -e command

This commit is contained in:
NieDzejkob
2017-05-14 16:05:50 +02:00
parent 928b195197
commit 36ecb5f530
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -1,4 +1,5 @@
#!/bin/sh
set -e
make -C gcc clean
make -C gcc old
mv gcc/old_agbcc .
+1
View File
@@ -1,4 +1,5 @@
#!/bin/sh
set -e
if [ "$1" != "" ]; then
mkdir -p $1/tools/agbcc
mkdir -p $1/tools/agbcc/bin