From 61f8fccd49c885ea9b99babd743e580cae731081 Mon Sep 17 00:00:00 2001 From: Jack <31696646+myspaghetti@users.noreply.github.com> Date: Thu, 28 May 2020 09:48:26 +0300 Subject: [PATCH] do not download beta version --- macos-guest-virtualbox.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/macos-guest-virtualbox.sh b/macos-guest-virtualbox.sh index 287aff0..2864681 100755 --- a/macos-guest-virtualbox.sh +++ b/macos-guest-virtualbox.sh @@ -2,7 +2,7 @@ # Push-button installer of macOS on VirtualBox # (c) myspaghetti, licensed under GPL2.0 or higher # url: https://github.com/myspaghetti/macos-virtualbox -# version 0.93.5 +# version 0.93.6 # Dependencies: bash coreutils gzip unzip wget xxd dmg2img # Supported versions: @@ -433,6 +433,9 @@ for catalog in "${macOS_release_name}_sucatalog_"* "error"; do wget "${urlbase}InstallAssistantAuto.smd" \ ${wgetargs} \ --output-document="${catalog}_InstallAssistantAuto.smd" + if [[ "$(cat "${catalog}_InstallAssistantAuto.smd" )" =~ .*Beta.* ]]; then + continue + fi found_version="$(head -n 6 "${catalog}_InstallAssistantAuto.smd" | tail -n 1)" if [[ "${found_version}" == *${CFBundleShortVersionString}* ]]; then echo -e "Found download URL: ${urlbase}\n"