From 0d08e13079313bdfaf1fb28807057a1a10a06842 Mon Sep 17 00:00:00 2001 From: Maxim Lobanov Date: Mon, 19 Oct 2020 08:24:21 +0300 Subject: [PATCH] test changes --- images/macos/provision/core/xcode-tools.sh | 28 +++++++++++---------- images/macos/provision/utils/utils.sh | 12 --------- images/macos/provision/utils/xcode-utils.sh | 4 +-- images/macos/toolsets/toolset-10.15.json | 13 +++++++++- 4 files changed, 29 insertions(+), 28 deletions(-) diff --git a/images/macos/provision/core/xcode-tools.sh b/images/macos/provision/core/xcode-tools.sh index 643dc2932..ebd6e43a3 100755 --- a/images/macos/provision/core/xcode-tools.sh +++ b/images/macos/provision/core/xcode-tools.sh @@ -13,17 +13,20 @@ if [ -z $XCODE_INSTALL_USER ] || [ -z $XCODE_INSTALL_PASSWORD ]; then exit 1 fi -XCODE_LIST=($(get_xcode_list_from_toolset)) -LATEST_XCODE_VERSION=$(get_latest_xcode_from_toolset) -DEFAULT_XCODE_VERSION=$(get_default_xcode_from_toolset) +XCODE_COUNT=$(get_toolset_value '.xcode.versions | length') +DEFAULT_XCODE_VERSION=$(get_toolset_value '.xcode.default') WORK_DIR="${HOME}/Library/Caches/XcodeInstall" # Update the list of available versions xcversion update -for XCODE_VERSION in "${XCODE_LIST[@]}" -do - VERSION_TO_INSTALL="$(getXcodeVersionToInstall "$XCODE_VERSION")" +for ((XCODE_INDEX=0; XCODE_INDEX