summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid C Wang <dcwangmit01@gmail.com>2017-03-10 22:17:44 +0000
committerXECDesign <XECDesign@users.noreply.github.com>2017-03-14 14:00:28 +0000
commit16b3133f4641e58ceb1e67250c5c685dfd50ad6e (patch)
tree777153a678047d4f0f06e70e57e338c206f94051
parent9cffa42a3514cd2a4d0aa648a6e52860ae86e1b5 (diff)
Make WORK_DIR and DEPLOY_DIR configurable through config file
-rwxr-xr-xbuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index f171023..85601b5 100755
--- a/build.sh
+++ b/build.sh
@@ -132,8 +132,8 @@ export IMG_DATE=${IMG_DATE:-"$(date -u +%Y-%m-%d)"}
export BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
export SCRIPT_DIR="${BASE_DIR}/scripts"
-export WORK_DIR="${BASE_DIR}/work/${IMG_DATE}-${IMG_NAME}"
-export DEPLOY_DIR="${BASE_DIR}/deploy"
+export WORK_DIR=${WORK_DIR:-"${BASE_DIR}/work/${IMG_DATE}-${IMG_NAME}"}
+export DEPLOY_DIR=${DEPLOY_DIR:-"${BASE_DIR}/deploy"}
export LOG_FILE="${WORK_DIR}/build.log"
export CLEAN