Added safety check
This commit is contained in:
parent
855884ec93
commit
69909fa34c
1 changed files with 9 additions and 0 deletions
|
|
@ -70,6 +70,15 @@ def menu_clone(source_path, dest_path):
|
||||||
# Confirm
|
# Confirm
|
||||||
if not ask('Proceed with clone?'):
|
if not ask('Proceed with clone?'):
|
||||||
abort_ddrescue_tui()
|
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
|
# Build outer panes
|
||||||
clear_screen()
|
clear_screen()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue