[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:
Darii Nurgaleev
2021-01-15 21:12:26 +07:00
committed by GitHub
parent 68e9c68855
commit 7c6117e6ec
13 changed files with 40 additions and 42 deletions

View File

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