X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=vpaste;h=2b677dc234c00c6cd8ba608dc350608dbd99096c;hb=87f72ff74a4001697e6cc732ef2bbd16944dc23d;hp=30633e09899a0913f37ec7dee5c9f2880e6c2039;hpb=447965a95515cad3ce66c9dbbc18775b27f9a70b;p=vpaste diff --git a/vpaste b/vpaste index 30633e0..2b677dc 100755 --- 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