From a251fffc699165cfad130d8c342ecc3f50ac10f7 Mon Sep 17 00:00:00 2001 From: Daniel Jiang Date: Tue, 8 Feb 2022 10:55:19 +0800 Subject: [PATCH] Make sure the tag-release script fail on any error Signed-off-by: Daniel Jiang --- hack/release-tools/tag-release.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hack/release-tools/tag-release.sh b/hack/release-tools/tag-release.sh index 964f558e8..a8591a899 100755 --- a/hack/release-tools/tag-release.sh +++ b/hack/release-tools/tag-release.sh @@ -38,6 +38,9 @@ # This script is meant to be a combination of documentation and executable. # If you have questions at any point, please stop and ask! +# Fail on any error. +set -eo pipefail + # Directory in which the script itself resides, so we can use it for calling programs that are in the same directory. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"