]> Pileus Git - vpaste/blobdiff - vpaste
bugs
[vpaste] / vpaste
diff --git a/vpaste b/vpaste
index 79cc6339e596ea88deb5dbf9b7dd889b16af4c0c..30633e09899a0913f37ec7dee5c9f2880e6c2039 100755 (executable)
--- a/vpaste
+++ b/vpaste
@@ -1,9 +1,9 @@
 #!/bin/bash
-uri="http://andy753421.ath.cx/vpaste/"
-if [ "$1" ]; then
-       out=$(curl -F "x=<$1" "$uri")
+uri="http://vpaste.net/"
+if [ -f "$1" ]; then
+       out=$(curl -s -F "x=<$1" "$uri?$2")
 else
-       out=$(curl -F 'x=<-' "$uri")
+       out=$(curl -s -F 'x=<-' "$uri?$1")
 fi
 echo "$out"
 if [ -x "`which xclip 2>/dev/null`" -a "$DISPLAY" ]; then