Append trailing slash '/' to $PLUGIN_DIR

This is to prevent find's misbehaviours which
lead events:list to output incorrent information.

Fixes #1839
This commit is contained in:
Alessio Treglia
2016-01-07 11:18:33 +00:00
parent f7e8c9be90
commit 546010246c

View File

@@ -26,7 +26,7 @@ case "$1" in
;;
events:list)
PLUGIN_DIR="$(dirname $0)"
PLUGIN_DIR="$(dirname $0)/"
if [[ "$DOKKU_EVENTS" ]]; then
logged="$(find $PLUGIN_DIR -type l -printf '%f ' | sort)"
dokku_col_log_info2_quiet "Events currently logged"