Fix shellcheck problems

Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
Severin Kaderli 2018-12-19 23:08:51 +01:00
parent a02e32523d
commit 0d3fdb8737

View file

@ -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