From: Andy Spencer Date: Sat, 26 Jul 2014 06:22:06 +0000 (+0000) Subject: Use /bin/sh for vpaste script X-Git-Url: http://pileus.org/git/?p=vpaste;a=commitdiff_plain Use /bin/sh for vpaste script --- diff --git a/vpaste b/vpaste index 2442479..2b677dc 100755 --- a/vpaste +++ b/vpaste @@ -1,12 +1,12 @@ -#!/bin/bash +#!/bin/sh -# Andy Spencer 2009-2011 - Public domain +# Andy Spencer - Public domain uri="http://vpaste.net/" if [ -f "$1" ]; then - out=$(curl -s -F "text=<$1" "$uri?$2") + out=`curl -s -F "text=<$1" "$uri?$2"` else - out=$(curl -s -F 'text=<-' "$uri?$1") + out=`curl -s -F 'text=<-' "$uri?$1"` fi echo "$out" if [ -x "`which xclip 2>/dev/null`" -a "$DISPLAY" ]; then