Error checking in shell script

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

@ -19,27 +19,33 @@ 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]
config=$1 echo ================
if [ -z "$config" ]; then
config="config=debug" if [ 1 -eq ${autoexec} ]; then
fi config=$1
if [ "config=debug" == "$config" ]; then if [ -z "$config" ]; then
echo config="config=debug"
echo ============== fi
echo [STARTING APP] if [ "config=debug" == "$config" ]; then
echo ============== echo
echo Config: Debug echo ==============
bin/linux-x86_64-Debug/sandbox/sandbox
elif [ "config=release" == "$config" ]; then
echo [STARTING APP] echo [STARTING APP]
echo [Config: Release] echo ==============
bin/linux-x86_64-Release/sandbox/sandbox echo Config: Debug
else bin/linux-x86_64-Debug/sandbox/sandbox
echo [Aborted Launch] elif [ "config=release" == "$config" ]; then
echo [Config Unknown] echo [STARTING APP]
echo [Config: Release]
bin/linux-x86_64-Release/sandbox/sandbox
else
echo [Aborted Launch]
echo [Config Unknown]
fi
fi fi
else
echo Error will compiling
fi fi
Loading…
Cancel
Save