Error checking in shell script

dev
anulax1225 ago%!(EXTRA string=1 year)
parent 1f0a314e9c
commit 5abba4f0b9
  1. 14
      build.sh

@ -19,10 +19,13 @@ fi
premake5 gmake premake5 gmake
make $1 make $1
echo ================ if [ $? -eq 0 ]; then
echo [FINISHED BUILD] echo Compilation Success
echo ================ echo ================
if [ 1 -eq ${autoexec} ]; then echo [FINISHED BUILD]
echo ================
if [ 1 -eq ${autoexec} ]; then
config=$1 config=$1
if [ -z "$config" ]; then if [ -z "$config" ]; then
config="config=debug" config="config=debug"
@ -42,4 +45,7 @@ if [ 1 -eq ${autoexec} ]; then
echo [Aborted Launch] echo [Aborted Launch]
echo [Config Unknown] echo [Config Unknown]
fi fi
fi
else
echo Error will compiling
fi fi
Loading…
Cancel
Save