summaryrefslogtreecommitdiffstats
path: root/tempfs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tempfs.sh')
-rwxr-xr-xtempfs.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tempfs.sh b/tempfs.sh
index 2602b9e..fd7401e 100755
--- a/tempfs.sh
+++ b/tempfs.sh
@@ -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