is_installed() { PROGRAM=$1 PATHNAME=$1 if [ -z "$PATHNAME" ]; then echo "cannot locate $PROTRAM in path" exit 1 fi }