summaryrefslogtreecommitdiffstats
path: root/fb
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-01-01 22:33:38 +0100
committerFlorian Pritz <bluewind@xssn.at>2010-01-01 22:33:38 +0100
commitb535dcd7b6a3f0b456d8eb393feb855166d05324 (patch)
treee305ee7ce545f2da9bec7d196c44fd342fed35cb /fb
parente2718a6f416d9e1feeca422f90ae09ce3f07e24e (diff)
downloadbin-b535dcd7b6a3f0b456d8eb393feb855166d05324.tar.gz
bin-b535dcd7b6a3f0b456d8eb393feb855166d05324.tar.xz
fb: remove tmpdir, fix some descriptions, v 0.5
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'fb')
-rwxr-xr-xfb10
1 files changed, 5 insertions, 5 deletions
diff --git a/fb b/fb
index 1f3e6ff..d4f4521 100755
--- a/fb
+++ b/fb
@@ -7,11 +7,10 @@
# only works if useragent contains libcurl
#----------------------------------------------------
-'''[cat |] %prog [file1 file2 ...]'''
-__version__ = '0.4.1'
+'''[cat |] %prog [options] [file1 file2 ...]'''
+__version__ = '0.5.0'
__desc__ = '''
-Upload file to paste.xinu.at and copy URL to clipboard
-or nopaste stdin
+Upload/nopaste file/stdin to paste.xinu.at and copy URL to clipboard.
'''
from optparse import OptionParser
@@ -52,7 +51,7 @@ def delete(id):
pw = password()
curl_args = []
if not pw:
- print 'Please set up .netrc correctly'
+ print 'Please set up ~/.netrc correctly'
sys.exit(1)
else:
curl_args.append('-F')
@@ -128,6 +127,7 @@ def main():
os.chdir('/tmp')
for path in tmpfiles:
Popen(['rm', '-rf', path])
+ Popen(['rm', '-rf', tmpdir])
if __name__ == '__main__':
main()