From: Holger Levsen Date: Fri, 22 Jun 2012 13:43:12 +0000 (+0200) Subject: take LIVE_TYPE as commandline param X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=280b6a6c876620ebd97a22019ae9df11aad1180a;p=profitbricks%2Fjenkins-build-scripts.git take LIVE_TYPE as commandline param --- diff --git a/live_build.sh b/live_build.sh index e9992e4..08eaf2e 100755 --- a/live_build.sh +++ b/live_build.sh @@ -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)