Use d-neg condition to prevent unexpected failures

This commit is contained in:
Alessio Treglia
2015-07-01 19:48:09 +01:00
parent 89d1acaa38
commit 0ed0201b90

View File

@@ -49,6 +49,6 @@ if [[ "$flag_rsyslog_needs_restart" == "y" ]]; then
service rsyslog restart
fi
[[ "$DOKKU_EVENTS" ]] && dokku_log_pluginhook_call "$(basename $0)" "$@"
[[ ! "$DOKKU_EVENTS" ]] || dokku_log_pluginhook_call "$(basename $0)" "$@"
exit 0