updated exit number on error
This commit is contained in:
parent
c4c7bb22dd
commit
bd5a4061b0
|
@ -63,7 +63,7 @@ esac
|
||||||
if [ "$DEPSCOMPLETE" = n ]
|
if [ "$DEPSCOMPLETE" = n ]
|
||||||
then
|
then
|
||||||
echo Please install the missing dependencies to start building
|
echo Please install the missing dependencies to start building
|
||||||
exit 1
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# begin exportation and stuff
|
# 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; }
|
command -v optipng >/dev/null 2>&1 || { echo >&2 "Missing dependency: optipng"; DEPSCOMPLETE=n; }
|
||||||
if [ "$DEPSCOMPLETE" = n ]; then
|
if [ "$DEPSCOMPLETE" = n ]; then
|
||||||
echo To optimize the build, please install optipng
|
echo To optimize the build, please install optipng
|
||||||
exit 1
|
exit 2
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
printf "${info_color}Using optipng to reduce the size of the build...${reset_colors}\\n"
|
printf "${info_color}Using optipng to reduce the size of the build...${reset_colors}\\n"
|
||||||
|
|
Loading…
Reference in New Issue