From c7ac4208afc9f4c0c7e100d627fef7d47d0b885b Mon Sep 17 00:00:00 2001 From: Coelacanthus Date: Mon, 25 Oct 2021 18:22:20 +0800 Subject: refactor(script): add fast-fail and clean-up (#5) Signed-off-by: Coelacanthus --- deploy.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'deploy.sh') diff --git a/deploy.sh b/deploy.sh index b6d5224..691ad2e 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,4 +1,8 @@ #!/bin/bash + +# end up when failed +set -Eeuo pipefail + if [ $# -eq 0 ]; then echo 'Should provide least one argument' exit 1 -- cgit v1.3.1