diff --git a/tasks/build.sh b/tasks/build.sh index a73bd72..095e81b 100755 --- a/tasks/build.sh +++ b/tasks/build.sh @@ -17,15 +17,17 @@ if [ "$IGNOREDEPS" != ok ] then # It mutes the output but verifies if the command returns an error # if that's true, then the process can't continue -command -v inkscape >/dev/null 2>&1 || { echo >&2 "Please install 'inkscape'"; DEPSCOMPLETE=n; } -command -v parallel >/dev/null 2>&1 || { echo >&2 "Please install 'parallel'"; DEPSCOMPLETE=n; } -command -v bash >/dev/null 2>&1 || { echo >&2 "Please install 'bash'"; DEPSCOMPLETE=n; } -command -v optipng >/dev/null 2>&1 || { echo >&2 "Please install 'parallel'"; DEPSCOMPLETE=n; } +command -v inkscape >/dev/null 2>&1 || { echo >&2 "Missing dependency: inkscape"; DEPSCOMPLETE=n; } +command -v parallel >/dev/null 2>&1 || { echo >&2 "Missing dependency: parallel"; DEPSCOMPLETE=n; } +command -v bash >/dev/null 2>&1 || { echo >&2 "Missing dependency: bash"; DEPSCOMPLETE=n; } +command -v optipng >/dev/null 2>&1 || { echo >&2 "Missing dependency: parallel"; DEPSCOMPLETE=n; } fi # here is the checking. it is sepparated for practicy if [ "$DEPSCOMPLETE" = n ] -then exit 1 +then + echo Please install the missing dependencies to start building + exit 1 fi # Check for --help