From 0d3fdb8737f0960553ce49b23c7fd20d91a481d7 Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Wed, 19 Dec 2018 23:08:51 +0100 Subject: [PATCH] Fix shellcheck problems Signed-off-by: Severin Kaderli --- system/bin/watch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/bin/watch.sh b/system/bin/watch.sh index c3404ea..d608701 100755 --- a/system/bin/watch.sh +++ b/system/bin/watch.sh @@ -20,11 +20,11 @@ FILENAME=$(basename "${FILE}") # The rest of the arguments is the command shift -COMMAND="${@}" +COMMAND="${*}" print_header "Watching ${FILE}" while inotifywait -qq -e close_write "${FILE}"; do print_log "${FILENAME} has changed" "Executing command" - $($COMMAND) + $COMMAND done \ No newline at end of file