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