summaryrefslogtreecommitdiff
path: root/bpaste.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bpaste.sh')
-rw-r--r--bpaste.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/bpaste.sh b/bpaste.sh
index 1d36b1b..de091ab 100644
--- a/bpaste.sh
+++ b/bpaste.sh
@@ -14,6 +14,9 @@
# projects@yorhel.nl
# License: MIT
#
+# 0.4 - 2016-06-21
+# - Remove -l option
+#
# 0.3 - 2016-02-14
# - Rewrote from perl to shell+curl
# - Add HTTPS support
@@ -34,8 +37,7 @@ SYNTAX=nosyntax
FILE=-
WRAP=0
CLICK=0
-LONG=0
-VERSION=0.3
+VERSION=0.4
showhelp() {
@@ -46,7 +48,6 @@ $0 [-wcl] [-s <syntax>] [-f <file>] [-h <host>]
-s <syntax> Enable syntax highlighting using <syntax>.
-w Allow line wrapping.
-c Don't make URLs clickable.
- -l Generate a long and unguessable URL.
To upload pastes with a passcode, store your passcode in
~/.bpastepass (per user) or /etc/bpastepass (globally).
@@ -62,7 +63,6 @@ while getopts 'h:s:f:wcl?' opt; do
f) FILE=$OPTARG ;;
w) WRAP=1 ;;
c) CLICK=1 ;;
- l) LONG=1 ;;
?) showhelp ;;
esac
done
@@ -81,6 +81,6 @@ PASS=
[ -s ~/.bpastepass ] && PASS=`head -n 1 ~/.bpastepass`
-curl -si -A "bpaste $VERSION" -F "f=<$TMPFILE" -F "s=$SYNTAX" -F "w=$WRAP" -F "c=$CLICK" -F "l=$LONG" -F "p=$PASS" $HOST\
+curl -si -A "bpaste $VERSION" -F "f=<$TMPFILE" -F "s=$SYNTAX" -F "w=$WRAP" -F "c=$CLICK" -F "p=$PASS" $HOST\
| grep 'Location: '\
| sed 's/^Location: //'