Expand warning notice for ddrescue-tui under macOS
This commit is contained in:
parent
ffa2df416b
commit
d722e587b1
1 changed files with 14 additions and 8 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue