From 2fdc4d38d963ba7532397ce119ff030ea4080800 Mon Sep 17 00:00:00 2001 From: Darii Nurgaleev <50947177+Darleev@users.noreply.github.com> Date: Wed, 6 Jan 2021 13:21:49 +0700 Subject: [PATCH] [macOS] Ruby3.0 installation fix (#2390) * [macOS] Fail Pester tests on error * return it back * [macOS] fix ruby3 installation. --- images/macos/provision/core/ruby.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/macos/provision/core/ruby.sh b/images/macos/provision/core/ruby.sh index e21250e1d..952c0ea7c 100755 --- a/images/macos/provision/core/ruby.sh +++ b/images/macos/provision/core/ruby.sh @@ -21,7 +21,7 @@ if [ ! -d $RUBY_PATH ]; then fi for TOOLSET_VERSION in ${TOOLSET_VERSIONS[@]}; do - PACKAGE_TAR_NAME=$(echo "$PACKAGE_TAR_NAMES" | grep "^ruby-${TOOLSET_VERSION}-macos-latest.tar.gz$" | sort -V | tail -1) + PACKAGE_TAR_NAME=$(echo "$PACKAGE_TAR_NAMES" | grep "^ruby-${TOOLSET_VERSION}-macos-latest.tar.gz$" | egrep -v "rc|preview" | sort -V | tail -1) RUBY_VERSION=$(echo "$PACKAGE_TAR_NAME" | cut -d'-' -f 2) RUBY_VERSION_PATH="$RUBY_PATH/$RUBY_VERSION"