summaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-09-04 11:37:29 -0300
committerRenato Botelho <renato@netgate.com>2015-09-04 11:37:29 -0300
commit906ca3b03eb977922d274766d3a8b57ac3db7902 (patch)
tree11baad1c7fefbc19f5899423535f6641a93fd44e /build.sh
parent57217e9752b6489c324d3f35888651a44dbabf87 (diff)
downloadpfsense-906ca3b03eb977922d274766d3a8b57ac3db7902.zip
pfsense-906ca3b03eb977922d274766d3a8b57ac3db7902.tar.gz
Fix --snapshot-update-status with empty message
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