From 5d653cabd5e0daa308feccdda2c6be043f25231a Mon Sep 17 00:00:00 2001 From: Paul Liverman Date: Mon, 29 Dec 2014 21:23:34 -0800 Subject: [PATCH] close #8 custom config (kinda shitty) --- build | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build b/build index 96d4b58..97443fa 100644 --- a/build +++ b/build @@ -6,10 +6,12 @@ set -o nounset set -o errexit # get config -#if $1 ; then -# has a command-line option -#fi -source ./config.sh +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 # append -buildN build numbers # (build.number file stored in $outputDir)