From bd5a4061b0f48659ecf215b367955d5b6405c14f Mon Sep 17 00:00:00 2001 From: germedeb Date: Sun, 25 Sep 2022 22:16:33 -0300 Subject: [PATCH] updated exit number on error --- tasks/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/build.sh b/tasks/build.sh index 19a362e..a734867 100755 --- a/tasks/build.sh +++ b/tasks/build.sh @@ -63,7 +63,7 @@ esac if [ "$DEPSCOMPLETE" = n ] then echo Please install the missing dependencies to start building - exit 1 + exit 2 fi # begin exportation and stuff @@ -139,7 +139,7 @@ if [ "$OPTIPNG" = use ]; then command -v optipng >/dev/null 2>&1 || { echo >&2 "Missing dependency: optipng"; DEPSCOMPLETE=n; } if [ "$DEPSCOMPLETE" = n ]; then echo To optimize the build, please install optipng - exit 1 + exit 2 fi fi printf "${info_color}Using optipng to reduce the size of the build...${reset_colors}\\n"