line breaks for messages that went over 80 columns
printf doesn't append a newline by default
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
# Semi-automatic installer of macOS on VirtualBox
|
# Semi-automatic installer of macOS on VirtualBox
|
||||||
# (c) myspaghetti, licensed under GPL2.0 or higher
|
# (c) myspaghetti, licensed under GPL2.0 or higher
|
||||||
# url: https://github.com/myspaghetti/macos-guest-virtualbox
|
# url: https://github.com/myspaghetti/macos-guest-virtualbox
|
||||||
# version 0.77.2
|
# version 0.77.3
|
||||||
|
|
||||||
# Requirements: 40GB available storage on host
|
# Requirements: 40GB available storage on host
|
||||||
# Dependencies: bash >= 4.0, unzip, wget, dmg2img,
|
# Dependencies: bash >= 4.0, unzip, wget, dmg2img,
|
||||||
@@ -209,8 +209,7 @@ elif [[ "$(cat /proc/sys/kernel/osrelease 2>/dev/null)" =~ [Mm]icrosoft ]]; then
|
|||||||
echo ""
|
echo ""
|
||||||
echo "The script requires Windows 10 version 1903 or higher to run properly on WSL."
|
echo "The script requires Windows 10 version 1903 or higher to run properly on WSL."
|
||||||
echo "For lower versions, please run the script on a path on the Windows filesystem,"
|
echo "For lower versions, please run the script on a path on the Windows filesystem,"
|
||||||
printf 'for example '"${white_on_black}"'/mnt/c/Users/Public/Documents'"${default_color}"
|
printf 'for example '"${white_on_black}"'/mnt/c/Users/Public/Documents'"${default_color}"'\n\n'
|
||||||
echo ""
|
|
||||||
printf "${white_on_black}"'Press enter to continue, CTRL-C to exit.'"${default_color}"
|
printf "${white_on_black}"'Press enter to continue, CTRL-C to exit.'"${default_color}"
|
||||||
read
|
read
|
||||||
fi
|
fi
|
||||||
@@ -250,8 +249,7 @@ if [ -z "${vbox_version}" ]; then
|
|||||||
elif [[ "${vbox_version}" =~ ^6\.1 ]]; then
|
elif [[ "${vbox_version}" =~ ^6\.1 ]]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "VirtualBox version 6.1 detected; its NVRAM driver cannot be loaded."
|
echo "VirtualBox version 6.1 detected; its NVRAM driver cannot be loaded."
|
||||||
printf "${white_on_black}"'iCloud, iMessage, and other Apple-conneted apps will not work.'"${default_color}\n"
|
printf "${white_on_black}"'iCloud, iMessage, and other Apple-conneted apps will not work.'"${default_color}"'\n\n'
|
||||||
echo ""
|
|
||||||
printf "${white_on_black}"'Press enter to continue, CTRL-C to exit.'"${default_color}"
|
printf "${white_on_black}"'Press enter to continue, CTRL-C to exit.'"${default_color}"
|
||||||
read
|
read
|
||||||
elif [[ ! ${vbox_version:0:1} == 6 && ! "${vbox_version:0:6}" =~ ^5\.2\.1[0-9] && ! "${vbox_version:0:5}" =~ ^5\.2\.[2-9] ]]; then
|
elif [[ ! ${vbox_version:0:1} == 6 && ! "${vbox_version:0:6}" =~ ^5\.2\.1[0-9] && ! "${vbox_version:0:5}" =~ ^5\.2\.[2-9] ]]; then
|
||||||
@@ -881,7 +879,7 @@ function place_efi_apfs_drivers {
|
|||||||
# VirtualBox 6.1 has own EFI APFS drivers, doesn't require acidanthera drivers
|
# VirtualBox 6.1 has own EFI APFS drivers, doesn't require acidanthera drivers
|
||||||
if [[ ! "$(VBoxManage -v 2>/dev/null)" =~ ^6\.1 ]]; then
|
if [[ ! "$(VBoxManage -v 2>/dev/null)" =~ ^6\.1 ]]; then
|
||||||
echo ""
|
echo ""
|
||||||
printf "${white_on_black}"'After the VM boots, press enter when either the Language window'"${default_color}"
|
printf "${white_on_black}"'After the VM boots, press enter when either the Language window'"${default_color}"'\n'
|
||||||
printf "${white_on_black}"'or Utilities window is ready.'"${default_color}"
|
printf "${white_on_black}"'or Utilities window is ready.'"${default_color}"
|
||||||
read -p ""
|
read -p ""
|
||||||
send_enter
|
send_enter
|
||||||
|
|||||||
Reference in New Issue
Block a user