aboutsummaryrefslogtreecommitdiffstats
path: root/pomf
blob: 051a0daf6ee8fb7ac2eee2c8578315b844d17910 (plain)
1
2
3
4
#!/usr/bin/env bash
upload=$(curl -sf -F "files[]=@\"$1\"" http://pomf.se/upload.php)
geturl=$(jshon -e files -e 0 -e url -u <<< $upload)
printf "%s/%s\n" "http://a.pomf.se" "$geturl"