From d722e587b1d8be77575c172d29f237c8a21d6204 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Sat, 17 Apr 2021 11:26:00 -0600 Subject: [PATCH] Expand warning notice for ddrescue-tui under macOS --- scripts/ddrescue-tui | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/scripts/ddrescue-tui b/scripts/ddrescue-tui index 0b8f345f..c5fbbc4b 100755 --- a/scripts/ddrescue-tui +++ b/scripts/ddrescue-tui @@ -2,15 +2,21 @@ # ## Wizard Kit: ddrescue TUI Launcher -# Check if running under Linux -os_name="$(uname -s)" -if [[ "$os_name" == "Darwin" ]]; then - os_name="macOS" +__OS_NAME="$(uname -s)" +if [[ "$__OS_NAME" == "Darwin" ]]; then + __OS_NAME="macOS" fi -if [[ "$os_name" != "Linux" ]]; then - echo "This script is not fully supported under $os_name." 1>&2 - echo "" - echo "Press Enter to continue..." +__NOTICE="This script is not fully supported under $__OS_NAME! + +Limitations: + Map files are saved to a RAM disk so you can't resume after a restart. + Only whole devices are supported. + +Press Enter to continue..." + +# Check if running under Linux +if [[ "$__OS_NAME" != "Linux" ]]; then + echo "${__NOTICE}" read -r _dontcare fi