From 906ca3b03eb977922d274766d3a8b57ac3db7902 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 4 Sep 2015 11:37:29 -0300 Subject: Fix --snapshot-update-status with empty message --- build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build.sh') 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 -- cgit v1.1