From 31143b1e6f3e9bd996ed3940f47f088fa751f371 Mon Sep 17 00:00:00 2001 From: img2tab <31696646+img2tab@users.noreply.github.com> Date: Sat, 9 Mar 2019 16:52:22 +0000 Subject: [PATCH] dictionary and other global functions re-globaled --- macos-guest-virtualbox.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/macos-guest-virtualbox.sh b/macos-guest-virtualbox.sh index 99b3b89..0d3d1c4 100644 --- a/macos-guest-virtualbox.sh +++ b/macos-guest-virtualbox.sh @@ -2,7 +2,7 @@ # One-key semi-automatic installer of macOS on VirtualBox # (c) img2tab, licensed under GPL2.0 or higher # url: https://github.com/img2tab/macos-guest-virtualbox -# version 0.47 +# version 0.48 # Requirements: 33.5GB available storage on host # Dependencies: bash>=4.0, unzip, wget, dmg2img, @@ -244,7 +244,6 @@ VBoxManage setextradata "${vmname}" \ "VBoxInternal/Devices/efi/0/Config/DmiSystemSerial" "${serialnumber}" } -function initialize_script_functions() { # QWERTY-to-scancode dictionary. Hex scancodes, keydown and keyup event. # Virtualbox Mac scancodes found here: # https://wiki.osdev.org/PS/2_Keyboard#Scan_Code_Set_1 @@ -434,8 +433,6 @@ Press enter when the Terminal command prompt is ready.'${defaultcolor} read -p "" } -} - # Start the virtual machine. This should take a couple of minutes. function populate_virtual_disks() { echo "Starting virtualmachine ${vmname}. This should take a couple of minutes." @@ -662,12 +659,10 @@ if [ -z "${1}" ]; then create_install_vdi attach_initial_storage configure_vm - initialize_script_functions populate_virtual_disks install_the_installer boot_macos_installer else check_dependencies - initialize_script_functions for argument in $@; do ${argument}; done fi