Expand warning notice for ddrescue-tui under macOS

This commit is contained in:
2Shirt 2021-04-17 11:26:00 -06:00
parent ffa2df416b
commit d722e587b1
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -2,15 +2,21 @@
# #
## Wizard Kit: ddrescue TUI Launcher ## Wizard Kit: ddrescue TUI Launcher
# Check if running under Linux __OS_NAME="$(uname -s)"
os_name="$(uname -s)" if [[ "$__OS_NAME" == "Darwin" ]]; then
if [[ "$os_name" == "Darwin" ]]; then __OS_NAME="macOS"
os_name="macOS"
fi fi
if [[ "$os_name" != "Linux" ]]; then __NOTICE="This script is not fully supported under $__OS_NAME!
echo "This script is not fully supported under $os_name." 1>&2
echo "" Limitations:
echo "Press Enter to continue..." 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 read -r _dontcare
fi fi