Halt package scripts on error.

This commit is contained in:
Paul Chote 2017-08-22 20:40:38 +01:00
parent e7caeefd11
commit 3b57ec1702
3 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,6 @@
#!/bin/bash
# OpenRA packaging script for macOS
set -e
command -v make >/dev/null 2>&1 || { echo >&2 "The OpenRA mod template requires make."; exit 1; }
command -v python >/dev/null 2>&1 || { echo >&2 "The OpenRA mod template requires python."; exit 1; }

View File

@ -1,4 +1,5 @@
#!/bin/bash
set -e
if [ $# -ne "2" ]; then
echo "Usage: `basename $0` version outputdir"

View File

@ -1,4 +1,5 @@
#!/bin/bash
set -e
command -v curl >/dev/null 2>&1 || { echo >&2 "Windows packaging requires curl."; exit 1; }
command -v makensis >/dev/null 2>&1 || { echo >&2 "Windows packaging requires makensis."; exit 1; }