Created
June 6, 2018 16:34
-
-
Save SteveRyan-ASU/708318769a6aee458869d1147b0efb64 to your computer and use it in GitHub Desktop.
Terminus loop for creating a list of sites by upstream ID.
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
for site in $(terminus org:site:list --field Name <org>);do | |
if [[ ! -z $(terminus site:info --field Upstream $site | grep -o <upstream id>) ]];then | |
echo $site | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment