Created
June 28, 2016 19:31
-
-
Save elazarl/fc84b07d49a912cefc00cf42a2806287 to your computer and use it in GitHub Desktop.
List vagrant box download URLs
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
#!/bin/bash | |
if [ -z "$@" ]; then | |
echo Example usage: | |
echo $0 ubuntu/xenial64 | |
echo Output: | |
echo https://atlas.hashicorp.com/ubuntu/boxes/xenial64/versions/20160627.0.0/providers/virtualbox.box | |
echo https://atlas.hashicorp.com/ubuntu/boxes/xenial64/versions/20160625.0.0/providers/virtualbox.box | |
echo ... | |
exit 1 | |
fi | |
curl -L https://atlas.hashicorp.com/"$@" | jq -r '.versions[].providers[].url' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment