diff --git a/script/solve_gfortran b/script/solve_gfortran index 4314a7e607c2e552e0cf8b7d4037ce3cbd5605b3..30adc804e1690bcc9ffccd7fdc69c4f0a0804869 100755 --- a/script/solve_gfortran +++ b/script/solve_gfortran @@ -14,9 +14,15 @@ if [ x"$1" = x"osx" ]; then commands[0]="$pcman install gcc" possible_solutions "${commands[@]}" elif [ x"$1" = x"linux" ]; then - commands[0]="su -c \"$pcman install gfortran\"" - commands[1]="sudo $pcman install gfortran" - possible_solutions "${commands[@]}" + if [ x"$pcman" == "apt-get" ]; then + commands[0]="su -c \"$pcman install gfortran\"" + commands[1]="sudo $pcman install gfortran" + possible_solutions "${commands[@]}" + else + commands[0]="su -c \"$pcman install gcc-gfortran\"" + commands[1]="sudo $pcman install gcc-gfortran" + possible_solutions "${commands[@]}" + fi fi }