Update utils.sh and watch.sh
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
2614e38b24
commit
c88cf45884
2 changed files with 4 additions and 4 deletions
|
@ -22,9 +22,9 @@ FILENAME=$(basename "${FILE}")
|
|||
shift
|
||||
COMMAND="${*}"
|
||||
|
||||
print_header "Watching ${FILE}"
|
||||
print_section "Watching ${FILE}"
|
||||
while inotifywait -qq -e close_write "${FILE}";
|
||||
do
|
||||
print_log "${FILENAME} has changed" "Executing command"
|
||||
print_notify "${FILENAME} has changed" "Executing command"
|
||||
$COMMAND
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue