From b535dcd7b6a3f0b456d8eb393feb855166d05324 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 1 Jan 2010 22:33:38 +0100 Subject: fb: remove tmpdir, fix some descriptions, v 0.5 Signed-off-by: Florian Pritz --- fb | 10 +++++----- 1 file 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() -- cgit v1.2.3-24-g4f1b