summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-10-24 10:41:15 +0200
committerFlorian Pritz <bluewind@xssn.at>2010-10-24 10:41:15 +0200
commitf7be5d413416d558357ba2d2310f2e08800da9ac (patch)
tree3971d57fd2921da7a14fffd28be1abb6c7935f75
parente83c182908785273310df23d5801bd9e7689cebc (diff)
fix uploading of dynamic filesv0.6.8.2
curl is unable to determine the size of dynamic files like /proc/cpuinfo because they are only stored in memory and dynamically generated when read. Signed-off-by: Florian Pritz <bluewind@xssn.at>
-rwxr-xr-xfb4
1 files changed, 2 insertions, 2 deletions
diff --git a/fb b/fb
index 41523fc..30c02f7 100755
--- a/fb
+++ b/fb
@@ -11,7 +11,7 @@
# Optional: xclip
#----------------------------------------------------
-VERSION="0.6.8.1"
+VERSION="0.6.8.2"
DELETE=
EXTENSION=""
@@ -58,7 +58,7 @@ do_upload() {
return 1
fi
fi
- if ! curl -# -n -L -A $USERAGENT $EXTRA -F "file=@$file" "$PASTEBIN/file/do_upload" > $TMPFILE; then
+ if ! cat "$file" | curl -# -n -L -A $USERAGENT $EXTRA -F "file=@-;filename=$basefilename" "$PASTEBIN/file/do_upload" > $TMPFILE; then
EXITCODE=1
return 1
fi