From 2a4845b70641e060fa44725eb96a781845bbb9bf Mon Sep 17 00:00:00 2001 From: Jack <31696646+myspaghetti@users.noreply.github.com> Date: Sat, 25 Jan 2020 02:12:19 +0200 Subject: [PATCH] fixed broken app_path detection --- 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 45f673e..6cd0500 100755 --- a/macos-guest-virtualbox.sh +++ b/macos-guest-virtualbox.sh @@ -2,7 +2,7 @@ # Semi-automatic installer of macOS on VirtualBox # (c) myspaghetti, licensed under GPL2.0 or higher # url: https://github.com/myspaghetti/macos-guest-virtualbox -# version 0.80.1 +# version 0.80.2 # Requirements: 40GB available storage on host # Dependencies: bash >= 4.3, xxd, gzip, unzip, wget, dmg2img, @@ -915,7 +915,7 @@ send_keys # Create secondary base system on the Install disk # and copy macOS install app files to the app directory kbstring='asr restore --source "/Volumes/'"${macOS_release_name:0:5}-files"'/BaseSystem.dmg" --target /Volumes/Install --erase --noprompt && '\ -'app_path="$(ls -d "/Volumes/OS X Base System 1/Install"*.app)" && '\ +'app_path="$(ls -d "/Volumes/"*"Base System 1/Install"*.app)" && '\ 'install_path="${app_path}/Contents/SharedSupport/" && '\ 'mkdir -p "${install_path}" && cd "/Volumes/'"${macOS_release_name:0:5}-files/"'" && '\ 'cp *.chunklist *.plist *.dmg "${install_path}" && '\