$ [PST_PRIVATE=1] pst [slug] < filecurl -L https://fars.ee/AFoB | install -Dm755 /dev/stdin /usr/local/bin/pst- runs everywhere
- extremely compact
- im bored
wtfpl.
| #!/bin/sh | |
| e="${PST_ENDPOINT:-https://fars.ee}" | |
| p="${PST_PRIVATE:-0}" | |
| s="" | |
| if [[ "$1" != "" ]]; then s="~$1"; fi | |
| curl -sF "f=@-" -F p=$p "$e/$s" |