From 6dc36d40fda175a48de7c1198f131b76f503e5bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Harper?= Date: Thu, 7 Dec 2023 18:17:27 -0500 Subject: [PATCH] chore: add exit code for aws assume script Thanks to @D-B-Hawk for the suggestion --- tools/aws-assume-role.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/aws-assume-role.sh b/tools/aws-assume-role.sh index 30130d027..182de7177 100755 --- a/tools/aws-assume-role.sh +++ b/tools/aws-assume-role.sh @@ -61,4 +61,7 @@ then echo -e "${BOLD}AWS_ACCESS_KEY_ID: ${NOFORMAT} ${AWS_ACCESS_KEY_ID}" echo -e "${BOLD}AWS_SECRET_ACCESS_KEY:${NOFORMAT} ${AWS_SECRET_ACCESS_KEY}" echo -e "${BOLD}AWS_SESSION_TOKEN: ${NOFORMAT} ${AWS_SESSION_TOKEN}" +else + # The script wasn't successful + exit 1 fi