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
# 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