blob: 9c2e26d2593d9fc9d29e09d927c022161aa8d8ff (
plain)
1
2
3
4
5
6
7
|
#!/usr/bin/env bash
set -o errexit
upload=$(curl -sf -F "files[]=@\"$1\"" https://pomf.se/upload.php)
geturl=$(jshon -e files -e 0 -e url -u <<< $upload)
printf "%s/%s\n" "https://a.pomf.se" "$geturl"
|