diff options
author | VG <vg@devys.org> | 2015-07-19 03:55:19 +0200 |
---|---|---|
committer | VG <vg@devys.org> | 2015-07-19 03:55:19 +0200 |
commit | e59747a1217d9f23f7d5fe0707b1b9b2a5b968e9 (patch) | |
tree | d723bc08528f144f8c8e57dcd89b60db21577e84 | |
parent | 5064abaac3be3792bf40e56ce215c09f2f0c9434 (diff) | |
download | uuidxer-e59747a1217d9f23f7d5fe0707b1b9b2a5b968e9.tar.gz uuidxer-e59747a1217d9f23f7d5fe0707b1b9b2a5b968e9.tar.bz2 uuidxer-e59747a1217d9f23f7d5fe0707b1b9b2a5b968e9.zip |
log removing only when there is something to remove
-rwxr-xr-x | scan.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -42,7 +42,8 @@ def main(): if len(uuids) == 1: my_uuid = open(uuids[0]).readline().strip() else: - print('removing:', uuids) + if uuids: + print('removing:', uuids) for f in uuids: os.unlink(f) my_uuid = create_uuid_txt(root) |