From 05785c235ef91d931a0f1e9f4963763b47c7e2ca Mon Sep 17 00:00:00 2001 From: Paul Liverman Date: Mon, 29 Dec 2014 22:05:56 -0800 Subject: [PATCH] hotfix stupid errors, remove custom config option cause broken utterly --- build | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/build b/build index 0f9f6c8..b389ac8 100644 --- a/build +++ b/build @@ -6,18 +6,21 @@ set -o nounset set -o errexit # get config -if [ ! -z "$1" ]; then - # has a command-line option, which should be the config file to load from - source "$1" -else +#if [ ! -z "$1" ]; then +# # has a command-line option, which should be the config file to load from +# source "$1" +#else source ./config.sh -fi +#fi + +# make $outputDir if it doesn't exist +if [ ! -d "$outputDir" ]; then mkdir -p "$outputDir"; fi # append -buildN build numbers # (build.number file stored in $outputDir) if [ $autoNumberBuilds = true ]; then # get the number if file exists, else use 1 - if [ ! -r "$outputDir/build.number" ]; then + if [ -r "$outputDir/build.number" ]; then source "$outputDir/build.number" ((build++)) else