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