X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=vpaste;h=24424796c393f015bc3221ced94eb54d4ec04c67;hb=bcd1f6a93a994934dd4465833df94d2d5570ab89;hp=79cc6339e596ea88deb5dbf9b7dd889b16af4c0c;hpb=caa8a608303db243c12aff8586fbe41bdf2e562c;p=vpaste diff --git a/vpaste b/vpaste index 79cc633..2442479 100755 --- a/vpaste +++ b/vpaste @@ -1,9 +1,12 @@ #!/bin/bash -uri="http://andy753421.ath.cx/vpaste/" -if [ "$1" ]; then - out=$(curl -F "x=<$1" "$uri") + +# Andy Spencer 2009-2011 - Public domain + +uri="http://vpaste.net/" +if [ -f "$1" ]; then + out=$(curl -s -F "text=<$1" "$uri?$2") else - out=$(curl -F 'x=<-' "$uri") + out=$(curl -s -F 'text=<-' "$uri?$1") fi echo "$out" if [ -x "`which xclip 2>/dev/null`" -a "$DISPLAY" ]; then