From a8f7a54a925204d54cde87e62361cc8472931d64 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Sun, 9 Jun 2024 18:46:21 +0100 Subject: Set some bash options for better scripting safety --- monitor.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monitor.sh b/monitor.sh index a89d64e..685e66e 100755 --- a/monitor.sh +++ b/monitor.sh @@ -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; -- cgit v1.2.3