Skip to content

Commit

Permalink
Set some bash options for better scripting safety
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Jun 9, 2024
1 parent a423a9d commit a8f7a54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions monitor.sh
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit a8f7a54

Please sign in to comment.