From 6bdb425fcfb9327e52ab9d4f553a4dc00695b30e Mon Sep 17 00:00:00 2001 From: RealJohnGalt Date: Mon, 29 Oct 2018 08:19:26 -0700 Subject: [PATCH] proper exit codes --- cemutil.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cemutil.sh b/cemutil.sh index 4cf8484..9325ef4 100755 --- a/cemutil.sh +++ b/cemutil.sh @@ -10,14 +10,14 @@ for i in "${reqsw[@]}" do if ! [ -x "$(command -v $i)" ]; then echo "You must install $i" - exit 0 + exit 1 fi done if ! $(glxinfo | grep -q "18.3"); then if ! $(glxinfo | grep -q "18.2"); then echo "You must install at least Mesa 18.2.0" - exit 0 + exit 1 fi fi @@ -28,11 +28,11 @@ if [[ $# -eq 0 ]] ; then else if [ ! -f "$1" ]; then echo "cemu zip doesn't exist" - exit 0 + exit 1 fi if [ ! -f "$2" ]; then echo "cemuhook zip doesn't exist" - exit 0 + exit 1 fi fi