All pastes #828405 Raw Edit

function

public text v1 · immutable
#828405 ·published 2007-12-22 13:07 UTC
rendered paste body
is_installed() {

    PROGRAM=$1

    PATHNAME=$( type $PROGRAM 2> /dev/null )
    if [ -z "$PATHNAME" ]; then
        echo "cannot locate $PROGRAM in path"
        exit 1
    fi

}