]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
take LIVE_TYPE as commandline param
authorHolger Levsen <holger@layer-acht.org>
Fri, 22 Jun 2012 13:43:12 +0000 (15:43 +0200)
committerHolger Levsen <holger@layer-acht.org>
Fri, 22 Jun 2012 13:43:12 +0000 (15:43 +0200)
live_build.sh

index e9992e4938c8c85fd946bec73cc8b7d88130c861..08eaf2ef0a645fa39f49112ca72e2c833c6d0eca 100755 (executable)
@@ -3,9 +3,10 @@
 
 set -e
 
-if [ "$LIVE_TYPE" == "" ] ; then
-       echo 'please supply $LIVE_TYPE environment variable'
-       exit 0
+if [ "$1" == "" ] ; then
+       export LIVE_TYPE="default"
+else
+       export LIVE_TYPE=$1
 fi
 
 BUILDDATE=$(date +%Y%m%d%H%M)