diff options
author | 2024-06-09 18:47:05 +0100 | |
---|---|---|
committer | 2024-06-09 18:47:05 +0100 | |
commit | 01c4847fb85365c12201e3d20484ba9f6e9821f0 (patch) | |
tree | 8b05bd303d570b978efe60dcb184710bf79dedd4 /monitor.sh | |
parent | Set some bash options for better scripting safety (diff) |
Attempt to set args better
Diffstat (limited to '')
-rwxr-xr-x | monitor.sh | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -17,7 +17,11 @@ else fi; fi; -ADDITIONAL_ARGS=$(if [[ -n "$WATCH_EVENTS" ]]; then echo "-e $WATCH_EVENTS"; else echo ""; fi) +if [ -n "$WATCH_EVENTS" ]; then + ADDITIONAL_ARGS="-e $WATCH_EVENTS" +else + ADDITIONAL_ARGS="" +fi while inotifywait $ADDITIONAL_ARGS -r /opt/monitor; do $HOOK_SCRIPT |