aboutsummaryrefslogtreecommitdiffstats
path: root/priv/templates
diff options
context:
space:
mode:
authorLuis Rascao <[email protected]>2017-07-20 22:46:19 +0100
committerLuis Rascao <[email protected]>2017-07-20 22:46:19 +0100
commit4ea93cce5bab132818d42248ecfd16d8ab8a5c10 (patch)
treef53649968204806a32ed4c05169a3f6b89ff8736 /priv/templates
parentdbe93ae3dad33d3a6721b01a6fdc91b120bd340e (diff)
downloadrelx-4ea93cce5bab132818d42248ecfd16d8ab8a5c10.tar.gz
relx-4ea93cce5bab132818d42248ecfd16d8ab8a5c10.tar.bz2
relx-4ea93cce5bab132818d42248ecfd16d8ab8a5c10.zip
Don't fail status script command if empty
Diffstat (limited to 'priv/templates')
-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