chiark / gitweb /
package.sh: abort when a variable is undefined
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 14 Jan 2015 01:42:24 +0000 (02:42 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 14 Jan 2015 03:59:53 +0000 (04:59 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
package.sh

index 6b7b80cd7cd47d5c2853cf0ff0d49efd58d8f8fb..d76824120ad1cc0c378b9468e9b0598750b566a2 100755 (executable)
@@ -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