diff options
Diffstat (limited to 'tempfs.sh')
-rwxr-xr-x | tempfs.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,6 +1,6 @@ #!/bin/bash #---------------------------------------------------- -# Version: 0.1.0 +# Version: 0.1.1 # Author: Florian "Bluewind" Pritz <f-p@gmx.at> # # Copyright (C) 2009 Florian Pritz @@ -12,7 +12,7 @@ # Upload file to tempfs and copy URL to cpulboard #---------------------------------------------------- -URL=$(curl -# -F userfile="@$1" -F 'expirationTime=5' -H "Expect: " http://www.tempfs.com/upload.php | ack 'http://.*/uploadedFiles/[^\s]*?' | sed 's/<\/span>//') +URL=$(curl -# -F userfile="@$1" -F 'expirationTime=5' -H "Expect: " http://www.tempfs.com/upload.php | grep -o 'http://.*/uploadedFiles/.*' | sed 's/<\/span>//') echo -n $URL | nohup >/dev/null 2>&1 xclip echo $URL |