summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-05-02 11:04:56 +0200
committerFlorian Pritz <bluewind@xssn.at>2010-05-02 11:04:56 +0200
commit323c00311d2f90cb7a82286d037ee5fc8c09f960 (patch)
treebdc913cebbe347620a2ce600a87efa71dfd36a45
parent40e84c5d06b3a23b42c6bd9733362674510615cb (diff)
downloadbin-323c00311d2f90cb7a82286d037ee5fc8c09f960.tar.gz
bin-323c00311d2f90cb7a82286d037ee5fc8c09f960.tar.xz
fb: remove \n from URL
Signed-off-by: Florian Pritz <bluewind@xssn.at>
-rwxr-xr-xfb2
1 files changed, 1 insertions, 1 deletions
diff --git a/fb b/fb
index bced69f..98a5256 100755
--- a/fb
+++ b/fb
@@ -34,7 +34,7 @@ def do_upload(file, extension=None):
url = Popen(merge([['curl', '-#', '-n', '-L', '-F', 'file=@%s' % file,
], curl_args, ['http://paste.xinu.at/file/do_upload']]),
- stdout=PIPE).communicate()[0]
+ stdout=PIPE).communicate()[0].rstrip()
print url
Popen('echo -n "%s" | nohup >/dev/null xclip 2>&1' % url, shell=True)