From 332fc6f79c68bf68628865f865d3e0b604cbb17d Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Mon, 22 Jun 2015 17:08:38 +0100 Subject: [PATCH] Corrected dependendencies test which was always failing. --- mk/build.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/mk/build.sh b/mk/build.sh index d1e106387..a0e1e00f1 100755 --- a/mk/build.sh +++ b/mk/build.sh @@ -40,13 +40,17 @@ for DEP in nunit-console zip unzip mkisofs wget curl hg git patch do -which $DEP >>/dev/null || echo "ERROR: $DEP was not found, install it or add it to the PATH." && FATAL=1 + which $DEP >>/dev/null + if [ $? -ne 0 ]; then + echo "ERROR: $DEP was not found, install it or add it to the PATH." + FATAL=1 + fi done if [ -z ${FATAL+x} ]; then -echo "" + echo "" else -echo "FATAL: One or more build tools were not found." -exit 1 + echo "FATAL: One or more build tools were not found." + exit 1 fi