Last active
October 18, 2018 14:01
-
-
Save ob1-sc/9cbbae277d2492fcdeda29fe267ebd2d to your computer and use it in GitHub Desktop.
Simple Script to download tile from pivnet
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
| export PIVNET_TOKEN="123456" # Get from network.pivotal.io | |
| export DEPLOYMENT_URL="http://network.pivotal.io" # This is the API download URL for your release | |
| export FILE_NAME="ert.zip" # This is the name of the file that gets created locally | |
| # download from pivnet | |
| wget -O "$FILE_NAME" --post-data="" --header="Authorization: Token $PIVNET_TOKEN" "$DEPLOYMENT_URL" | |
| # download from pivnet (with special sauce for flaky connections) | |
| wget -c --tries=0 --retry-connrefused --timeout=2 --wait=1 -O "$FILE_NAME" --post-data="" --header="Authorization: Token $PIVNET_TOKEN" "$DEPLOYMENT_URL" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment