Last active
December 1, 2021 13:54
-
-
Save andreichenchik/7fad439bbbe436b4521a5523f980fb54 to your computer and use it in GitHub Desktop.
enableOps Init
This file contains 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 | |
echo "Initializing enableOps for $1" | |
while [ $(wget --server-response --spider --quiet "https://rebrand.ly/enableops-for-${1}" 2>&1 | grep "Location: " | tail -n 1 | awk '{print $2}' | awk -F/ '{print $3}') != "gist.githubusercontent.com" ] | |
do | |
echo "Waiting for application to be processed on enableOps side" | |
sleep 2 | |
echo "Trying again..." | |
done | |
echo "Application is ready!" | |
bash <(wget -qO- https://rebrand.ly/enableops-for-${1}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment