diff options
author | Florian Pritz <bluewind@xssn.at> | 2010-01-01 22:33:38 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2010-01-01 22:33:38 +0100 |
commit | b535dcd7b6a3f0b456d8eb393feb855166d05324 (patch) | |
tree | e305ee7ce545f2da9bec7d196c44fd342fed35cb /fb | |
parent | e2718a6f416d9e1feeca422f90ae09ce3f07e24e (diff) | |
download | bin-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-x | fb | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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() |