diff options
author | Luis Rascao <[email protected]> | 2017-07-20 22:46:19 +0100 |
---|---|---|
committer | Luis Rascao <[email protected]> | 2017-07-20 22:46:19 +0100 |
commit | 4ea93cce5bab132818d42248ecfd16d8ab8a5c10 (patch) | |
tree | f53649968204806a32ed4c05169a3f6b89ff8736 /priv/templates/extended_bin | |
parent | dbe93ae3dad33d3a6721b01a6fdc91b120bd340e (diff) | |
download | relx-4ea93cce5bab132818d42248ecfd16d8ab8a5c10.tar.gz relx-4ea93cce5bab132818d42248ecfd16d8ab8a5c10.tar.bz2 relx-4ea93cce5bab132818d42248ecfd16d8ab8a5c10.zip |
Don't fail status script command if empty
Diffstat (limited to 'priv/templates/extended_bin')
-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 |