Skip to content

Commit

Permalink
enable stict error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-shashank committed Jun 5, 2024
1 parent 63add40 commit ae8afb9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ansible/archival-snapshots/resources/init.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash

## Enable strict error handling, command tracing, and pipefail
set -euxo pipefail

echo "Current user: $(whoami)"

LITE_SNAPSHOT_DIR="/mnt/md0/exported/archival/lite_snapshots"
DIFF_SNAPSHOT_DIR="/mnt/md0/exported/archival/diff_snapshots"

Expand Down
3 changes: 3 additions & 0 deletions ansible/archival-snapshots/resources/upload_diff.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

## Enable strict error handling, command tracing, and pipefail
set -euxo pipefail

ENDPOINT="$1"

while read -r file; do
Expand Down

0 comments on commit ae8afb9

Please sign in to comment.