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 # The rest of the arguments is the command
shift shift
COMMAND="${@}" COMMAND="${*}"
print_header "Watching ${FILE}" print_header "Watching ${FILE}"
while inotifywait -qq -e close_write "${FILE}"; while inotifywait -qq -e close_write "${FILE}";
do do
print_log "${FILENAME} has changed" "Executing command" print_log "${FILENAME} has changed" "Executing command"
$($COMMAND) $COMMAND
done done