summaryrefslogtreecommitdiff
path: root/bin
diff options
authorMaciej Kisielewski <maciej.kisielewski@canonical.com>2022-06-30 18:44:01 +0200
committerMaciej Kisielewski <maciej.kisielewski@canonical.com>2022-06-30 18:46:04 +0200
commitb32439bd0b2f35fa454a5604016d299834314ccc (patch)
tree4b43f787250732ef510b3f5ca6d4a17a8ab3e6f2 /bin
parent0bc1f6761099d405269e19b121e5c3250fce5fe5 (diff)
bring back the code that waits and checks the manipulation
I think I accidentally removed the code that for non-zapper branch of logic waited for the manipulation to be done. Fixes: LP: #1980372
Diffstat (limited to 'bin')
-rwxr-xr-xbin/removable_storage_watcher.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/removable_storage_watcher.py b/bin/removable_storage_watcher.py
index 7208954..988abc3 100755
--- a/bin/removable_storage_watcher.py
+++ b/bin/removable_storage_watcher.py
@@ -948,6 +948,10 @@ def main():
else:
print("\n\n{} NOW\n\n".format(args.action.upper()), flush=True)
+ try:
+ return listener.check(args.timeout)
+ except KeyboardInterrupt:
+ return 1
if __name__ == "__main__":