proper exit codes

This commit is contained in:
RealJohnGalt 2018-10-29 08:19:26 -07:00
parent 9d7fcd10d8
commit 6bdb425fcf

View File

@ -10,14 +10,14 @@ for i in "${reqsw[@]}"
do do
if ! [ -x "$(command -v $i)" ]; then if ! [ -x "$(command -v $i)" ]; then
echo "You must install $i" echo "You must install $i"
exit 0 exit 1
fi fi
done done
if ! $(glxinfo | grep -q "18.3"); then if ! $(glxinfo | grep -q "18.3"); then
if ! $(glxinfo | grep -q "18.2"); then if ! $(glxinfo | grep -q "18.2"); then
echo "You must install at least Mesa 18.2.0" echo "You must install at least Mesa 18.2.0"
exit 0 exit 1
fi fi
fi fi
@ -28,11 +28,11 @@ if [[ $# -eq 0 ]] ; then
else else
if [ ! -f "$1" ]; then if [ ! -f "$1" ]; then
echo "cemu zip doesn't exist" echo "cemu zip doesn't exist"
exit 0 exit 1
fi fi
if [ ! -f "$2" ]; then if [ ! -f "$2" ]; then
echo "cemuhook zip doesn't exist" echo "cemuhook zip doesn't exist"
exit 0 exit 1
fi fi
fi fi