From c97ae471476e7184b6e0fb676798f5acd53686b8 Mon Sep 17 00:00:00 2001 From: Darleev <50947177+Darleev@users.noreply.github.com> Date: Wed, 25 Aug 2021 09:57:13 +0100 Subject: [PATCH] [macOS 11] Fix for invalid link to release and software report (#3954) --- images/macos/provision/configuration/preimagedata.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/images/macos/provision/configuration/preimagedata.sh b/images/macos/provision/configuration/preimagedata.sh index 20220886..4f20c842 100644 --- a/images/macos/provision/configuration/preimagedata.sh +++ b/images/macos/provision/configuration/preimagedata.sh @@ -8,6 +8,11 @@ os_name=$(sw_vers -productName) os_version=$(sw_vers -productVersion) os_build=$(sw_vers -buildVersion) label_version=$(echo $os_version | cut -d. -f1,2) +if is_Less_BigSur; then + label_version=$(echo $os_version | cut -d. -f1,2) +else + label_version=$(echo $os_version | cut -d. -f1) +fi image_label="macos-${label_version}" release_label="macOS-${label_version}" software_url="https://github.com/actions/virtual-environments/blob/${release_label}/${image_version}/images/macos/${image_label}-Readme.md"