diff options
Diffstat (limited to 'client/brpaste.zsh')
| -rwxr-xr-x | client/brpaste.zsh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/brpaste.zsh b/client/brpaste.zsh new file mode 100755 index 0000000..b4cf5ef --- /dev/null +++ b/client/brpaste.zsh @@ -0,0 +1,6 @@ +#!/bin/zsh +host='https://brpaste.xyz' +[[ $# -eq 0 ]] && set -- '-' +brpaste_id=$(curl -\#fF "data=<$1" "$host") \ + || { echo 'ERROR: Upload failed!' >&2 && return 1; } +printf '%s/%s\n' "$host" "$brpaste_id" |
