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