From 1b1859915c8a6d8ab0f8d1f3b4439eaef2d2a272 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 15 Jan 2009 19:00:45 +0100 Subject: updated --- xup.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xup.sh') diff --git a/xup.sh b/xup.sh index 5a271eb..c548ad4 100755 --- a/xup.sh +++ b/xup.sh @@ -1,8 +1,8 @@ #!/bin/sh #----------------------------------------------------# # File: xup.sh -# Version: 0.1.3 -# Date: 2009-01-12 +# Version: 0.1.4 +# Date: 2009-01-14 # Author: Florian "Bluewind" Pritz # Upload file to XUP, copy URL to clipboard and # save to historyfile @@ -26,13 +26,13 @@ DIR="$(dirname "$1")" cd "$DIR" URLS=$(curl -# -F "F1=@$FILE" -L "http://www.xup.in/xtrans.php" -H "Expect: ") -DL_URL=$(echo -n ${URLS} | egrep -o "\"http://www.xup.in/dl,.{8}/$FILE/\"" | sed "s#\"##g") +DL_URL=$(echo -n ${URLS} | egrep -o "\"http://www.xup.in/dl,.{8}/" | sed "s#\"##g") DEL_URL=$(echo -n ${URLS} | egrep -o "\"http://www.xup.in/kill,.{8},.{10}/\"" | sed "s#\"##g") echo $(date) >> "$XUPHIST" echo "$PWD/$FILE" >> "$XUPHIST" echo $DL_URL >> "$XUPHIST" -echo -n $DL_URL | xclip +echo -n $DL_URL | nohup >/dev/null 2>&1 xclip echo -n $DL_URL echo $DEL_URL >> "$XUPHIST" echo "" >> "$XUPHIST" -- cgit v1.2.3-24-g4f1b