-
-
Save professorjamesmoriarty/b223bd0c9198c17cbfb9 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
# Set $PUUSH_API_KEY to your key and export it. | |
# The key is found on <http://puush.me/account/settings>. | |
if [ -z "$PUUSH_API_KEY" ]; then | |
echo "puu: please export api key" 1>&2 | |
exit 1 | |
fi | |
for file in "$@"; do | |
curl --progress-bar "https://puush.me/api/up" \ | |
-F k="$PUUSH_API_KEY" -F z="poop" -F f="@$file" | | |
sed -e 's/0,\|,.*//g' | |
echo | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment