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