diff options
| author | Britney Fransen <brfransen@gmail.com> | 2025-11-12 05:00:41 (GMT) |
|---|---|---|
| committer | Britney Fransen <brfransen@gmail.com> | 2025-11-12 05:00:41 (GMT) |
| commit | a85000ca3f0cbfb4e291363cbb35fb9b7b32bae2 (patch) | |
| tree | 8414d6b5e4fdc2c0f5b8f091db5110b5ebaf53eb /linhes/linhes-system/empty_storage_groups.py | |
| parent | e875d03567c7e2cacf201f855b28fc94d08dcdb3 (diff) | |
| download | linhes_pkgbuild-a85000ca3f0cbfb4e291363cbb35fb9b7b32bae2.zip linhes_pkgbuild-a85000ca3f0cbfb4e291363cbb35fb9b7b32bae2.tar.gz linhes_pkgbuild-a85000ca3f0cbfb4e291363cbb35fb9b7b32bae2.tar.bz2 | |
linhes-system: empty_storage_groups.py: exit when isBusytesting
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: |
