do not download beta version
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
# Push-button installer of macOS on VirtualBox
|
# Push-button installer of macOS on VirtualBox
|
||||||
# (c) myspaghetti, licensed under GPL2.0 or higher
|
# (c) myspaghetti, licensed under GPL2.0 or higher
|
||||||
# url: https://github.com/myspaghetti/macos-virtualbox
|
# url: https://github.com/myspaghetti/macos-virtualbox
|
||||||
# version 0.93.5
|
# version 0.93.6
|
||||||
|
|
||||||
# Dependencies: bash coreutils gzip unzip wget xxd dmg2img
|
# Dependencies: bash coreutils gzip unzip wget xxd dmg2img
|
||||||
# Supported versions:
|
# Supported versions:
|
||||||
@@ -433,6 +433,9 @@ for catalog in "${macOS_release_name}_sucatalog_"* "error"; do
|
|||||||
wget "${urlbase}InstallAssistantAuto.smd" \
|
wget "${urlbase}InstallAssistantAuto.smd" \
|
||||||
${wgetargs} \
|
${wgetargs} \
|
||||||
--output-document="${catalog}_InstallAssistantAuto.smd"
|
--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)"
|
found_version="$(head -n 6 "${catalog}_InstallAssistantAuto.smd" | tail -n 1)"
|
||||||
if [[ "${found_version}" == *${CFBundleShortVersionString}* ]]; then
|
if [[ "${found_version}" == *${CFBundleShortVersionString}* ]]; then
|
||||||
echo -e "Found download URL: ${urlbase}\n"
|
echo -e "Found download URL: ${urlbase}\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user