#!/usr/bin/env bash # Returns which status which "$1" >&/dev/null if [ $? -eq 0 ]; then echo 0 else echo 1 fi