diff options
author | 2024-06-09 18:46:21 +0100 | |
---|---|---|
committer | 2024-06-09 18:46:21 +0100 | |
commit | a8f7a54a925204d54cde87e62361cc8472931d64 (patch) | |
tree | 611ba33395871465497aaa7c164665649e9d7546 | |
parent | Set additional args correctly to factor in bash scoping (diff) |
Set some bash options for better scripting safety
-rwxr-xr-x | monitor.sh | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1,5 +1,7 @@ #!/usr/bin/env sh +set -exo pipefail + if [ -z ${HOOK_SCRIPT+x} ]; then echo "Missing HOOK_SCRIPT environment variable, set it to the script to run upon file changes"; exit 1; |