Clean up scripts
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
7e11ded7f6
commit
61012463fe
29 changed files with 49 additions and 451 deletions
|
@ -1,17 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# SCRIPT NAME:
|
||||
# watch-file
|
||||
#
|
||||
# AUTHOR:
|
||||
# Severin Kaderli <severin@kaderli.dev>
|
||||
#
|
||||
# DESCRIPTION:
|
||||
# This script watches a file for changes and if it changes it
|
||||
# executes the given command.
|
||||
#
|
||||
# USAGE:
|
||||
# ./watch-file FILE COMMAND...
|
||||
#!/usr/bin/env sh
|
||||
|
||||
. utils
|
||||
|
||||
# The file to watch
|
||||
|
@ -27,4 +15,4 @@ while inotifywait -qq -e close_write "${FILE}";
|
|||
do
|
||||
print_notify "${FILENAME} has changed" "Executing command"
|
||||
$COMMAND
|
||||
done
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue