summaryrefslogtreecommitdiffhomepage
path: root/client/brpaste.sh
blob: 97bd69766cfd7f5e942215e6fcd86335ab2e5007 (plain) (blame)
1
2
3
4
5
6
7
8
#!/bin/sh
brpaste() {
    host='https://brpaste.xyz'
    out=$(curl -sF 'data=<-' $host || printf fail)
    [ "$out" = fail ] && echo fail || printf '%s/%s\n' "$host" "$out"
}

brpaste