From 50302044c64e414ffe0435908146bc718bf6bed9 Mon Sep 17 00:00:00 2001 From: Alex Schofield Date: Mon, 19 Aug 2024 20:24:35 +0100 Subject: feat(deploy.sh): exit if any command returns non-zero status --- scripts/deploy.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/deploy.sh') diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 0446184..16a9e13 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -3,6 +3,9 @@ # WARNING: This will most likely destroy any current infrastructure if protections # are not in place. Be careful! +# Exit if any command has a non-zero status +set -e + echo "WARNING: This script will destroy any infrastructure for testing." echo "It should not be used once a proper deployment has been setup." echo "Would you like to continue?" -- cgit v1.2.3