Created
April 6, 2020 12:26
-
-
Save chips5k/a3dcd77f791af889a4c06e14f5d4ffd0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/env bash | |
run="1" | |
while [ "$run" == "1" ] | |
do | |
echo "trying" | |
res=$(aws s3 mb s3://bucket-name --region ap-southeast-2 >/dev/null 2>&1 && echo "success") | |
[ "$res" == "success" ] && exit 0 | |
echo "waiting..." | |
sleep 10 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment