[macOS] Ruby3.0 installation fix (#2390)

* [macOS] Fail Pester tests on error

* return it back

* [macOS] fix ruby3 installation.
This commit is contained in:
Darii Nurgaleev
2021-01-06 13:21:49 +07:00
committed by GitHub
parent 9b11155b75
commit 2fdc4d38d9

View File

@@ -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"