From 466670d80416bf2b10dc9a6bbac46a475ee045d9 Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Fri, 26 Jun 2015 16:37:01 +0100 Subject: [PATCH] Quote `find' statement to prevent word splitting This should fix ShellCheck SC2046 error. --- plugins/20_events/commands | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/20_events/commands b/plugins/20_events/commands index 377fee86f..45c6004e2 100755 --- a/plugins/20_events/commands +++ b/plugins/20_events/commands @@ -28,8 +28,9 @@ case "$1" in events:list) if [[ "$DOKKU_EVENTS" ]]; then + logged="$(find $(dirname $0) -type l -printf '%f ' | sort)" dokku_col_log_info2_quiet "Events currently logged" - for hook in $(find $(dirname $0) -type l -printf "%f " | sort) ; do + for hook in $logged ; do dokku_col_log_msg "$hook" done else