diff options
author | Renato Botelho <renato@netgate.com> | 2015-09-04 11:37:29 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-09-04 11:37:29 -0300 |
commit | 906ca3b03eb977922d274766d3a8b57ac3db7902 (patch) | |
tree | 11baad1c7fefbc19f5899423535f6641a93fd44e | |
parent | 57217e9752b6489c324d3f35888651a44dbabf87 (diff) | |
download | pfsense-906ca3b03eb977922d274766d3a8b57ac3db7902.zip pfsense-906ca3b03eb977922d274766d3a8b57ac3db7902.tar.gz |
Fix --snapshot-update-status with empty message
-rwxr-xr-x | build.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |