]> Pileus Git - vpaste/blobdiff - vpaste
Use /bin/sh for vpaste script
[vpaste] / vpaste
diff --git a/vpaste b/vpaste
index 30633e09899a0913f37ec7dee5c9f2880e6c2039..2b677dc234c00c6cd8ba608dc350608dbd99096c 100755 (executable)
--- a/vpaste
+++ b/vpaste
@@ -1,9 +1,12 @@
-#!/bin/bash
+#!/bin/sh
+
+# Andy Spencer - 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