aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVG <vg@devys.org>2015-07-19 03:55:19 +0200
committerVG <vg@devys.org>2015-07-19 03:55:19 +0200
commite59747a1217d9f23f7d5fe0707b1b9b2a5b968e9 (patch)
treed723bc08528f144f8c8e57dcd89b60db21577e84
parent5064abaac3be3792bf40e56ce215c09f2f0c9434 (diff)
downloaduuidxer-e59747a1217d9f23f7d5fe0707b1b9b2a5b968e9.tar.gz
uuidxer-e59747a1217d9f23f7d5fe0707b1b9b2a5b968e9.tar.bz2
uuidxer-e59747a1217d9f23f7d5fe0707b1b9b2a5b968e9.zip
log removing only when there is something to remove
-rwxr-xr-xscan.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scan.py b/scan.py
index eb24db4..3b47df1 100755
--- a/scan.py
+++ b/scan.py
@@ -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)