diff options
author | 2024-06-09 19:02:48 +0100 | |
---|---|---|
committer | 2024-06-09 19:02:48 +0100 | |
commit | f9d51f09dacfa9c0feeab3794815d387f4139596 (patch) | |
tree | 57ee5d03fb16c025132b7e2b67e7b7f34447432a /monitor.sh | |
parent | Allow for configuring watch directory in container (diff) |
Correct conditionals for script delay
Diffstat (limited to '')
-rwxr-xr-x | monitor.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -17,7 +17,7 @@ else fi; fi; -if [ -n "$WATCH_EVENTS" ]; then +if [ -n "$INOTIFY_WATCH_EVENTS" ]; then ADDITIONAL_ARGS="-e $INOTIFY_WATCH_EVENTS" else ADDITIONAL_ARGS="" @@ -30,7 +30,7 @@ else fi while inotifywait $ADDITIONAL_ARGS -r $WATCH_DIR; do - if [ -z ${INOTIFY_HOOK_DELAY+x} ]; then + if [ ! -z ${INOTIFY_HOOK_DELAY+x} ]; then echo "Waiting $INOTIFY_HOOK_DELAY until executing hook..." sleep $INOTIFY_HOOK_DELAY fi |