From 5883b7da9605706842d68d9a33bde6ab6d460f37 Mon Sep 17 00:00:00 2001 From: Jack <31696646+myspaghetti@users.noreply.github.com> Date: Thu, 28 May 2020 02:46:27 +0300 Subject: [PATCH] cleanup for a bit of terminal output --- macos-guest-virtualbox.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macos-guest-virtualbox.sh b/macos-guest-virtualbox.sh index f0bf365..287aff0 100755 --- a/macos-guest-virtualbox.sh +++ b/macos-guest-virtualbox.sh @@ -864,7 +864,7 @@ print_dimly "If the partitioning fails, exit the script by pressing CTRL-C Otherwise, please wait." while [[ "$( VBoxManage list runningvms )" =~ \""${vm_name}"\" ]]; do sleep 2 >/dev/null 2>&1; done echo "Waiting for the VirtualBox GUI to shut off." -for (( i=10; i>0; i-- )); do echo -ne " \r${i} "; sleep 0.5; done; echo " " +for (( i=10; i>0; i-- )); do echo -ne " \r${i} "; sleep 0.5; done; echo -e "\r " # Detach the original 2GB BaseSystem virtual disk image # and release basesystem VDI from VirtualBox configuration if [[ -n $( @@ -953,7 +953,7 @@ powers off the virtual machine and detaches the device \"${macOS_release_name} b booting into the initial installer environment again." clear_input_buffer_then_read VBoxManage controlvm "${vm_name}" poweroff >/dev/null 2>&1 - for (( i=10; i>0; i-- )); do echo -ne " \r${i} "; sleep 0.5; done; echo -n " " + for (( i=10; i>0; i-- )); do echo -ne " \r${i} "; sleep 0.5; done; echo -ne "\r " VBoxManage storagectl "${vm_name}" --remove --name SATA >/dev/null 2>&1 VBoxManage storagectl "${vm_name}" --add sata --name SATA --hostiocache on >/dev/null 2>&1 VBoxManage storageattach "${vm_name}" --storagectl SATA --port 0 \