diff --git a/src/install.sh b/src/install.sh index 5851653..017d469 100755 --- a/src/install.sh +++ b/src/install.sh @@ -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"