From 3c91ddf6d022896f4165aeaa0ee39b1ebc816102 Mon Sep 17 00:00:00 2001 From: germedeb Date: Thu, 28 Jul 2022 00:29:36 -0300 Subject: [PATCH] added a message to the missing dependencies error --- tasks/build.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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