summaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 5eed4cf..e4e23d7 100755
--- a/build.sh
+++ b/build.sh
@@ -201,8 +201,8 @@ while test "$1" != ""; do
;;
--snapshot-update-status)
shift
- [ -n "${1}" ] \
- && snapshot_status_message="${1}"
+ snapshot_status_message="${1}"
+ BUILDACTION="snapshot_status_message"
;;
*)
usage
@@ -223,7 +223,7 @@ if [ -n "${var_to_print}" ]; then
fi
# Update snapshot status and exit
-if [ -n "${snapshot_status_message}" ]; then
+if [ "${BUILDACTION}" = "snapshot_status_message" ]; then
export SNAPSHOTS=1
snapshots_update_status "${snapshot_status_message}"
exit 0
OpenPOWER on IntegriCloud