diff options
author | Florian Pritz <f-p@gmx.at> | 2009-06-27 23:05:09 +0200 |
---|---|---|
committer | Florian Pritz <f-p@gmx.at> | 2009-06-27 23:05:09 +0200 |
commit | d5a0d54c7028244a68425d353817a219e77e576e (patch) | |
tree | cdafc4ef1e4cdeb3923862ad0c436e97314464cc /filebin.sh | |
parent | 1f948b3ea29ce5978e08f3d9dfd8d85b05329842 (diff) | |
download | bin-d5a0d54c7028244a68425d353817a219e77e576e.tar.gz bin-d5a0d54c7028244a68425d353817a219e77e576e.tar.xz |
fix bug with multiple input lines
Diffstat (limited to 'filebin.sh')
-rwxr-xr-x | filebin.sh | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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) |