diff options
Diffstat (limited to 'linhes/linhes-system/empty_storage_groups.py')
| -rwxr-xr-x | linhes/linhes-system/empty_storage_groups.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linhes/linhes-system/empty_storage_groups.py b/linhes/linhes-system/empty_storage_groups.py index 1fc4208..c36437e 100755 --- a/linhes/linhes-system/empty_storage_groups.py +++ b/linhes/linhes-system/empty_storage_groups.py @@ -24,6 +24,8 @@ def sizeof_fmt(num, suffix='B'): return "%.1f %s%s" % (num, 'Yi', suffix) def signal_handler(signal, frame): + if isBusy: + sys.exit(0) print("\nWill quit when file has been moved.\nMoving File...") global shouldQuit shouldQuit = True @@ -163,6 +165,7 @@ if __name__ == '__main__': print("Check Only option was used. No files were moved.") shouldQuit = True else: + global isBusy isBusy = True while isBusy: if shouldQuit: |
