mirror of
https://github.com/actions/runner-images.git
synced 2025-12-24 18:39:49 +08:00
[macOS] Ruby3.0 installation fix (#2390)
* [macOS] Fail Pester tests on error * return it back * [macOS] fix ruby3 installation.
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user