aboutsummaryrefslogtreecommitdiffstats
path: root/priv
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2017-08-30 11:11:08 -0700
committerGitHub <[email protected]>2017-08-30 11:11:08 -0700
commit430b1d7f5ab75a849d70c82a98614f701a4912c6 (patch)
tree16556322b5b7358ed51f0bcdb46e89450f73a01a /priv
parentdbe93ae3dad33d3a6721b01a6fdc91b120bd340e (diff)
parent2ba5ec449413a82ea3d6b9bdd268506b25ef368c (diff)
downloadrelx-430b1d7f5ab75a849d70c82a98614f701a4912c6.tar.gz
relx-430b1d7f5ab75a849d70c82a98614f701a4912c6.tar.bz2
relx-430b1d7f5ab75a849d70c82a98614f701a4912c6.zip
Merge pull request #601 from lrascao/fix_non_existing_status_hook
Don't fail status script command if empty
Diffstat (limited to 'priv')
-rwxr-xr-xpriv/templates/extended_bin2
1 files changed, 1 insertions, 1 deletions
diff --git a/priv/templates/extended_bin b/priv/templates/extended_bin
index ed68748..71dd858 100755
--- a/priv/templates/extended_bin
+++ b/priv/templates/extended_bin
@@ -596,7 +596,7 @@ case "$1" in
exit 1
fi
- [ "$SCRIPT_DIR/$STATUS_HOOK" ] && . "$SCRIPT_DIR/$STATUS_HOOK" $@
+ [ ! -z "${STATUS_HOOK}" ] && [ "$SCRIPT_DIR/$STATUS_HOOK" ] && . "$SCRIPT_DIR/$STATUS_HOOK" $@
;;
help)
if [ -z "$2" ]; then