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
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue