Make scripts exit on failure

This commit is contained in:
2023-08-10 11:30:52 +02:00
parent 193061e53f
commit e95b23037e
3 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,7 @@
#!/bin/sh
set -eu
# See: https://stackoverflow.com/a/69768584/5155484
curl -f -s -# https://ip-ranges.amazonaws.com/ip-ranges.json | jq -r '.prefixes[] | select(.service == "CLOUDFRONT") | .ip_prefix' | sort -V > cloudfront-ips.txt
curl -f -s -# https://ip-ranges.amazonaws.com/ip-ranges.json | jq -r '.ipv6_prefixes[] | select(.service == "CLOUDFRONT") | .ipv6_prefix' | sort -V >> cloudfront-ips.txt

View File

@ -1,5 +1,7 @@
#!/bin/sh
set -eu
REV="v-$(date --iso-8601=seconds)"
cd ./digitalocean/

View File

@ -1,5 +1,7 @@
#!/bin/sh
set -eu
REV="v-$(date --iso-8601=seconds)"
cd ./digitalocean/