mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
[Ubuntu] Get toolset value function. (#2435)
* [macOS] Fail Pester tests on error * return it back * [Ubuntu] add get_toolset_values function * added fix * fix all nitpicks * try to get rid brackets * removed brackets. * pipx-package fix
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
## File: gfortran.sh
|
||||
## Desc: Installs GNU Fortran
|
||||
################################################################################
|
||||
|
||||
source $HELPER_SCRIPTS/install.sh
|
||||
source $HELPER_SCRIPTS/os.sh
|
||||
|
||||
function InstallFortran {
|
||||
@@ -17,8 +17,7 @@ function InstallFortran {
|
||||
add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
||||
apt-get update -y
|
||||
|
||||
toolset="$INSTALLER_SCRIPT_FOLDER/toolset.json"
|
||||
versions=$(jq -r '.gfortran.versions[]' $toolset)
|
||||
versions=$(get_toolset_value '.gfortran.versions[]')
|
||||
|
||||
for version in ${versions[*]}
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user