From 8d6b4ee08f60a4191f0a0150b8e63871196a70ee Mon Sep 17 00:00:00 2001 From: Patrick Ryan Date: Thu, 4 Jul 2019 09:10:17 -0700 Subject: [PATCH] moved variable to global as needed in several functions that would fail if ran via stages, place_efi_apfs_drivers for example. --- macos-guest-virtualbox.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/macos-guest-virtualbox.sh b/macos-guest-virtualbox.sh index 8d8d48d..bfdb7ce 100644 --- a/macos-guest-virtualbox.sh +++ b/macos-guest-virtualbox.sh @@ -38,6 +38,9 @@ white_on_red="\e[48;2;255;0;0m\e[38;2;255;255;255m" white_on_black="\e[48;2;0;0;9m\e[38;2;255;255;255m" default_color="\033[0m" +# other globals +macOS_installation_files_volume_id="swcdn-files" + function welcome() { printf ' Semi-automatic installer of macOS on VirtualBox @@ -337,7 +340,6 @@ endfor' > "startup.nsh" } function create_macos_installation_files_viso() { -macOS_installation_files_volume_id="swcdn-files" echo "Crating VirtualBox 6 virtual ISO containing the" echo "installation files from swcdn.apple.com" echo ""