better explanation for when to press enter

This commit is contained in:
Jack
2020-01-28 18:20:47 +02:00
parent f9a4785b60
commit 0783988901
+4 -4
View File
@@ -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.84.1 # version 0.84.2
# Requirements: 40GB available storage on host # Requirements: 40GB available storage on host
# Dependencies: bash >= 4.3, xxd, gzip, unzip, wget, dmg2img, # Dependencies: bash >= 4.3, xxd, gzip, unzip, wget, dmg2img,
@@ -798,9 +798,9 @@ kbstring='background_pid="$(ps | grep '"'"' sh$'"'"' | cut -d '"'"' '"'"' -f 3)"
send_keys send_keys
send_enter send_enter
if [[ ( "${vbox_version:0:1}" -lt 6 ) || ( "${vbox_version:0:1}" = 6 && "${vbox_version:2:1}" = 0 ) ]]; then if [[ ( "${vbox_version:0:1}" -lt 6 ) || ( "${vbox_version:0:1}" = 6 && "${vbox_version:2:1}" = 0 ) ]]; then
printf "${highlight_color}"'When the VM reboots, press enter'"${default_color}"' or alternatively printf "${highlight_color}"'When the installer finishes preparing and reboots the VM, press enter'"${default_color}"' so the script
manually detach the virtual storage device "'"Install ${macOS_release_name}.vdi"'" powers off the virtual machine and detaches the device "'"Install ${macOS_release_name}.vdi"'" to avoid
to avoid booting into the installer environment again.' booting into the installer environment again.'
clear_input_buffer_then_read clear_input_buffer_then_read
VBoxManage controlvm "${vmname}" poweroff >/dev/null 2>&1 VBoxManage controlvm "${vmname}" poweroff >/dev/null 2>&1
for (( i=10; i>5; i-- )); do printf ' \r'"${i}"; sleep 0.5; done for (( i=10; i>5; i-- )); do printf ' \r'"${i}"; sleep 0.5; done