Fix shellcheck problems
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
a02e32523d
commit
0d3fdb8737
1 changed files with 2 additions and 2 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue