Skip to content

Commit 57fe97d

Browse files
author
FaithKovi
committed
new workflow modification
1 parent e0a3e06 commit 57fe97d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

terraform/scripts/empty_bucket.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ AWS_REGION="$2"
88

99
# Check if the bucket exists
1010
if ! aws s3api head-bucket --bucket "$BUCKET_NAME" --region "$AWS_REGION" 2>/dev/null; then
11-
echo "Error: Bucket $BUCKET_NAME does not exist in region $AWS_REGION."
12-
exit 1
11+
echo "Bucket $BUCKET_NAME does not exist in region $AWS_REGION."
12+
exit 0
1313
fi
1414

1515
echo "Deleting all objects and versions from bucket $BUCKET_NAME in region $AWS_REGION"

0 commit comments

Comments
 (0)