detect_fortran 202 Bytes
Newer Older
incardon's avatar
incardon committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/bash

function detect_fortran()
{
    command -v $1 >/dev/null 2>&1
    if [ $? -ne 0 ]; then
      dgc_ret=0
      return
    fi

    echo -e "$1 \033[92;1m SUCCESS \033[0m"

    dgc_ret=1
}