Skip to content

Instantly share code, notes, and snippets.

@sauceaaron
Created January 8, 2020 14:22
Show Gist options
  • Save sauceaaron/e46a1c06571254b10d0d4fd99b520355 to your computer and use it in GitHub Desktop.
Save sauceaaron/e46a1c06571254b10d0d4fd99b520355 to your computer and use it in GitHub Desktop.
FILE=$1
FILENAME=$(basename $FILE)
if [ ! -f $FILE ]; then
echo "need to specify FILE: $FILE"
fi
URL="https://saucelabs.com/rest/v1/storage/$SAUCE_USERNAME/$FILENAME?overwrite=true"
curl -s -u $SAUCE_USERNAME:$SAUCE_ACCESS_KEY -X POST -H "Content-Type: application/octet-stream" $URL --data-binary @$FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment