From 12dc2063231f0dae2af4fab5476a44ba9e1235b1 Mon Sep 17 00:00:00 2001 From: Amine Date: Sun, 14 Oct 2018 15:57:22 +0200 Subject: [PATCH] Build with optional publish. --- build.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 756d81b..250ec02 100755 --- a/build.sh +++ b/build.sh @@ -5,6 +5,11 @@ TODAYS_VERSION="1" VERSION="${BASE_VERSION//./}$(date '+%y%m%j')$TODAYS_VERSION" -./version.sh ${VERSION} $@ +./version.sh ${VERSION} $1 -./publish-version.sh ${VERSION} +if [[ "$@" == *'--publish'* ]] +then + ./publish-version.sh ${VERSION} +else + echo "Did not publish. If you wanted to do so, call the script with \"--publish\"." +fi