From ee77901f68dc824f35efd82579a837c39e1ed05c Mon Sep 17 00:00:00 2001 From: Ferry Huberts Date: Wed, 14 Jan 2015 02:42:24 +0100 Subject: [PATCH] package.sh: abort when a variable is undefined Signed-off-by: Ferry Huberts --- package.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.sh b/package.sh index 6b7b80cd..d7682412 100755 --- a/package.sh +++ b/package.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -u + # This script is to package the Cura package for Windows/Linux and Mac OS X # This script should run under Linux and Mac OS X, as well as Windows with Cygwin. @@ -26,7 +28,7 @@ TARGET_DIR=Cura-${BUILD_NAME}-${BUILD_TARGET} WIN_PORTABLE_PY_VERSION=2.7.2.1 ##Which CuraEngine to use -if [ -z ${CURA_ENGINE_REPO} ] ; then +if [ -z ${CURA_ENGINE_REPO:-} ] ; then CURA_ENGINE_REPO="git@github.com:Ultimaker/CuraEngine.git" fi -- 2.30.2