From 928ae7b33680e839663f653ce7e3c2da2fa1b9f2 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Thu, 24 Aug 2017 14:33:19 +0200 Subject: [PATCH] Added checks for the commands needed by sub-packaging scripts --- packaging/package-all.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packaging/package-all.sh b/packaging/package-all.sh index bdea341..12921ed 100755 --- a/packaging/package-all.sh +++ b/packaging/package-all.sh @@ -6,6 +6,11 @@ if [ $# -ne "2" ]; then exit 1 fi +command -v python >/dev/null 2>&1 || { echo >&2 "The OpenRA mod template requires python."; exit 1; } +command -v make >/dev/null 2>&1 || { echo >&2 "The OpenRA mod template requires make."; exit 1; } +command -v curl >/dev/null 2>&1 || { echo >&2 "The OpenRA mod template requires curl."; exit 1; } +command -v makensis >/dev/null 2>&1 || { echo >&2 "The OpenRA mod template requires makensis."; exit 1; } + # Set the working dir to the location of this script cd "$(dirname $0)"