summaryrefslogtreecommitdiffstats
path: root/fb
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2009-09-02 19:21:04 +0200
committerFlorian Pritz <bluewind@xssn.at>2009-09-02 19:21:04 +0200
commit4a6730b7032199229c93fb25fb857c00977676a1 (patch)
tree6aef265c68a5348fa21ce430933d008449cb673d /fb
parentc5536b6527c37da68436a29459e35724aa679e46 (diff)
downloadbin-4a6730b7032199229c93fb25fb857c00977676a1.tar.gz
bin-4a6730b7032199229c93fb25fb857c00977676a1.tar.xz
fb: fix tmpfile name
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'fb')
-rwxr-xr-xfb1
1 files changed, 1 insertions, 0 deletions
diff --git a/fb b/fb
index d57a4d3..1fd5c34 100755
--- a/fb
+++ b/fb
@@ -72,6 +72,7 @@ def read_stdin():
if not content:
sys.exit()
tmpfile = Popen('mktemp', stdout=PIPE).communicate()[0]
+ tmpfile = tmpfile.replace('\n', '')
f = open(tmpfile, 'w')
f.write(content)
f.close()