Skip to content

Instantly share code, notes, and snippets.

@AndreiChenchik
Last active December 1, 2021 13:54
Show Gist options
  • Save AndreiChenchik/7fad439bbbe436b4521a5523f980fb54 to your computer and use it in GitHub Desktop.
Save AndreiChenchik/7fad439bbbe436b4521a5523f980fb54 to your computer and use it in GitHub Desktop.
enableOps Init
#!/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