From: Ferry Huberts Date: Wed, 14 Jan 2015 01:42:24 +0000 (+0100) Subject: package.sh: abort when a variable is undefined X-Git-Tag: 15.01-RC8~1^2~1^2~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=ee77901f68dc824f35efd82579a837c39e1ed05c;p=cura.git package.sh: abort when a variable is undefined Signed-off-by: Ferry Huberts --- 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