From fb5d3a06f004b06bef1626b2e5b8267406e02d4a Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Fri, 26 Jun 2015 18:01:40 +0100 Subject: [PATCH] Attempt to fix SC2046 --- plugins/20_events/commands | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/20_events/commands b/plugins/20_events/commands index eda884078..62f0ea475 100755 --- a/plugins/20_events/commands +++ b/plugins/20_events/commands @@ -2,6 +2,8 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x source "$(dirname $0)/../common/functions" +PLUGIN_DIR="$(dirname $0)" + case "$1" in events) if [[ -f $DOKKU_EVENTS_LOGFILE ]] ; then @@ -26,7 +28,7 @@ case "$1" in events:list) if [[ "$DOKKU_EVENTS" ]]; then - logged="$(find $(dirname $0) -type l -printf '%f ' | sort)" + logged="$(find $PLUGIN_DIR -type l -printf '%f ' | sort)" dokku_col_log_info2_quiet "Events currently logged" for hook in $logged ; do dokku_col_log_msg "$hook"