From 69909fa34cf474f6bb150d273a1f486e914165d4 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Mon, 16 Jul 2018 21:02:53 -0600 Subject: [PATCH] Added safety check --- .bin/Scripts/functions/ddrescue.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.bin/Scripts/functions/ddrescue.py b/.bin/Scripts/functions/ddrescue.py index 544ce2a6..0805ab79 100644 --- a/.bin/Scripts/functions/ddrescue.py +++ b/.bin/Scripts/functions/ddrescue.py @@ -70,6 +70,15 @@ def menu_clone(source_path, dest_path): # Confirm if not ask('Proceed with clone?'): abort_ddrescue_tui() + + # Safety check + print_standard('\nSAFETY CHECK') + print_warning('All data will be DELETED from the ' + 'destination device and partition(s) listed above.') + print_warning('This is irreversible and will lead ' + 'to {CLEAR}{RED}DATA LOSS.'.format(**COLORS)) + if not ask('Asking again to confirm, is this correct?'): + abort_ddrescue_tui() # Build outer panes clear_screen()