summaryrefslogtreecommitdiffstats
path: root/filebin.sh
diff options
context:
space:
mode:
authorFlorian Pritz <f-p@gmx.at>2009-06-27 23:05:09 +0200
committerFlorian Pritz <f-p@gmx.at>2009-06-27 23:05:09 +0200
commitd5a0d54c7028244a68425d353817a219e77e576e (patch)
treecdafc4ef1e4cdeb3923862ad0c436e97314464cc /filebin.sh
parent1f948b3ea29ce5978e08f3d9dfd8d85b05329842 (diff)
downloadbin-d5a0d54c7028244a68425d353817a219e77e576e.tar.gz
bin-d5a0d54c7028244a68425d353817a219e77e576e.tar.xz
fix bug with multiple input lines
Diffstat (limited to 'filebin.sh')
-rwxr-xr-xfilebin.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/filebin.sh b/filebin.sh
index 0e94b82..a6d6635 100755
--- a/filebin.sh
+++ b/filebin.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#----------------------------------------------------
-# Version: 0.2.0
+# Version: 0.2.1
# Author: Florian "Bluewind" Pritz <f-p@gmx.at>
#
# Licensed under WTFPL v2
@@ -18,8 +18,9 @@ if [ -n "$1" ]; then
else
file=$(mktemp)
tmpfile=1
- read -r input
- echo $input > $file
+ while read -r input; do
+ echo $input >> $file
+ done
fi
URL=$(curl -# -L -F "userfile=@$file" http://filebin.server-speed.net/index.php/file/do_upload)