diff options
author | Tristan Sloughter <[email protected]> | 2017-08-30 11:11:08 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2017-08-30 11:11:08 -0700 |
commit | 430b1d7f5ab75a849d70c82a98614f701a4912c6 (patch) | |
tree | 16556322b5b7358ed51f0bcdb46e89450f73a01a /priv | |
parent | dbe93ae3dad33d3a6721b01a6fdc91b120bd340e (diff) | |
parent | 2ba5ec449413a82ea3d6b9bdd268506b25ef368c (diff) | |
download | relx-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-x | priv/templates/extended_bin | 2 |
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 |