From 1d787e51931a49e72f8cf7ed7e547addf08fd60d Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 21 Jun 2011 09:21:42 +0200 Subject: [PATCH] modified: PKGBUILD modified: paste42.sh --- PKGBUILD | 2 +- paste42.sh | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 3c4b36e..c25329a 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ # PKGBUILD for ArchLinux pkgname=paste42 -pkgver=20110512.1 +pkgver=20110621.1 pkgrel=1 pkgdesc="Utility to post text files to paste42.de using curl" arch=('i686' 'x86_64') diff --git a/paste42.sh b/paste42.sh index b891019..1792bbd 100755 --- a/paste42.sh +++ b/paste42.sh @@ -3,7 +3,7 @@ # paste42.sh [-s] [-t "filetype"] [-l] [-h] [-u] file # Variablen initialisieren & defaults setzen -VERSION="20110512.1" +VERSION="20110621.1" ATTR='' OPTS="" EXP='0' @@ -105,5 +105,7 @@ if [ $pw -eq 1 ] ; then done fi +filename=`basename $1` + # und die daten absenden. -curl -s -S --data-urlencode "del=$password" -d "title=curl paste of $1" $ATTR -d "type=$TYPE" --data-urlencode "text@$1" 'http://paste42.de/save' +curl -s -S --data-urlencode "del=$password" -d "title=curl paste of $filename" $ATTR -d "type=$TYPE" --data-urlencode "text@$1" 'http://paste42.de/save'