Fix bug in install script for the gfortran version
add "|cut -d. -f1" to keep only the major version number
This commit is contained in:
parent
9296509f7b
commit
b698eb7cfe
|
@ -159,7 +159,7 @@ check_dependencies () {
|
|||
gcc_ver_min=6
|
||||
log_message "Checking if gfortran >= $gcc_ver_min is installed..."
|
||||
command -V gfortran || return 1
|
||||
gcc_ver=$(gcc -dumpversion)
|
||||
gcc_ver=$(gcc -dumpversion|cut -d. -f1)
|
||||
echo "You have gfortran version $gcc_ver installed"
|
||||
test "$gcc_ver" -ge "$gcc_ver_min" || return 1
|
||||
log_message "Ok\n"
|
||||
|
|
Loading…
Reference in New Issue