mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 14:17:22 +00:00
Fix Major.Minor version regex
This commit is contained in:
@@ -23,7 +23,7 @@ function GetLatestJuliaRelease () {
|
||||
|
||||
function InstallJulia () {
|
||||
# Extract Major and Minor version from full version string
|
||||
juliaMajorAndMinorVersion="$(sed 's/\.*[0-9]//3' <<< $1)"
|
||||
juliaMajorAndMinorVersion="$(sed 's/\.[^.]*$//' <<< $1)"
|
||||
|
||||
curl -sL "https://julialang-s3.julialang.org/bin/linux/x64/$juliaMajorAndMinorVersion/julia-$1-linux-x86_64.tar.gz" -o "julia-$1-linux-x86_64.tar.gz"
|
||||
mkdir -p "/usr/local/julia$juliaMajorAndMinorVersion"
|
||||
|
||||
Reference in New Issue
Block a user