Skip to content

Instantly share code, notes, and snippets.

@ob1-sc
Last active October 18, 2018 14:01
Show Gist options
  • Select an option

  • Save ob1-sc/9cbbae277d2492fcdeda29fe267ebd2d to your computer and use it in GitHub Desktop.

Select an option

Save ob1-sc/9cbbae277d2492fcdeda29fe267ebd2d to your computer and use it in GitHub Desktop.
Simple Script to download tile from pivnet
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