Skip to content

Commit ab38810

Browse files
committed
no -v in bash on macOS
1 parent 2580a99 commit ab38810

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/gfortran_utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
function check_gfortran {
2020
# Check that gfortran exists on the path
21-
if [[ -v FC && -e "$FC" ]]; then
21+
if [[ -n "$FC" && -e "$FC" ]]; then
2222
echo using gfortran from FC
2323
echo $FC --version
2424
elif [ -z "$(which gfortran)" ]; then

0 commit comments

Comments
 (0)