diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-05-11 13:27:07 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-05-11 13:27:07 +0200 |
commit | 60cb01f9a81c311f914aed4a23e8e5b35e965918 (patch) | |
tree | 8b9109a8f1bcf37506755e0e77b83b0a026cda57 /xup.sh | |
parent | a9ba01279e6f3c64b082f4de6e7d95cd1b5f7dab (diff) | |
download | bin-60cb01f9a81c311f914aed4a23e8e5b35e965918.tar.gz bin-60cb01f9a81c311f914aed4a23e8e5b35e965918.tar.xz |
soem more cleanup
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'xup.sh')
-rwxr-xr-x | xup.sh | 29 |
1 files changed, 0 insertions, 29 deletions
@@ -1,29 +0,0 @@ -#!/bin/bash -#---------------------------------------------------- -# Version: 0.1.5 -# Author: Florian "Bluewind" Pritz <flo@xssn.at> -# -# Licensed under WTFPL v2 -# (see COPYING for full license text) -# -#---------------------------------------------------- -# Upload file to XUP, copy URL to clipboard and -# save to historyfile -#---------------------------------------------------- - -XUPHIST="${HOME}/.xup_history" -FILE="$(basename "$1")" -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}/" | 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 | nohup >/dev/null 2>&1 xclip -echo -n $DL_URL -echo $DEL_URL >> "$XUPHIST" -echo "" >> "$XUPHIST" |