File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
prerequisites/install-functions Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 11# shellcheck shell=bash disable=SC2154,SC2129,SC2148
22report_results ()
33{
4- type_FC=` type ${FC} `
5- fully_qualified_FC=" /${type_FC#*/ } "
4+ fully_qualified_FC=" $( type -P " ${FC} " ) "
65 if [[ ${fully_qualified_FC} != * gfortran* ]]; then
76 emergency " report_results.sh: non-gfortran compiler: \$ {fully_qualified_FC}=${fully_qualified_FC} "
87 fi
98 # Set path_to_FC fully-qualified gfortran location
10- compiler_install_root=" ${fully_qualified_FC%% bin/ gfortran* } "
9+ compiler_install_root=" ${fully_qualified_FC% bin/ gfortran* } "
1110
12- type_MPIFC=` type ${MPIFC} `
13- fully_qualified_MPIFC=" /${type_MPIFC#*/ } "
14- mpi_install_root=" ${fully_qualified_MPIFC%% bin/ mpif90* } "
11+ fully_qualified_MPIFC=" $( type -P " ${MPIFC} " ) "
12+ mpi_install_root=" ${fully_qualified_MPIFC% bin/ mpif90* } "
1513
16- type_CMAKE=` type ${CMAKE} `
17- fully_qualified_CMAKE=" /${type_CMAKE#*/ } "
18- cmake_install_path=" ${fully_qualified_CMAKE%%/ cmake* } "
14+ fully_qualified_CMAKE=" $( type -P " ${CMAKE} " ) "
15+ cmake_install_path=" ${fully_qualified_CMAKE%/ cmake* } "
1916
2017 # Report installation success or failure and record locations for software stack:
2118 if [[ -x " ${install_path%/ } /bin/caf" && -x " ${install_path%/ } /bin/cafrun" ]]; then
You can’t perform that action at this time.
0 commit comments