From 2ddb878b545e130eb65a4aef6481dab038a7512f Mon Sep 17 00:00:00 2001 From: Alan Mason <1923621+2Shirt@users.noreply.github.com> Date: Wed, 22 Nov 2017 20:06:56 -0800 Subject: [PATCH] Added confirmation to sfc_scan.py * Should help avoiding undesired scans --- .bin/Scripts/sfc_scan.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.bin/Scripts/sfc_scan.py b/.bin/Scripts/sfc_scan.py index 1590671e..913c4025 100644 --- a/.bin/Scripts/sfc_scan.py +++ b/.bin/Scripts/sfc_scan.py @@ -23,8 +23,11 @@ if __name__ == '__main__': 'Warning': { 'GenericRepair': 'Repaired', }} - try_and_print(message='SFC scan...', - function=run_sfc_scan, other_results=other_results) + if ask('Run a SFC scan now?'): + try_and_print(message='SFC scan...', + function=run_sfc_scan, other_results=other_results) + else: + abort() # Done print_standard('\nDone.')