dotfiles/bin/is-executable

7 lines
No EOL
81 B
Bash
Executable file

#!/usr/bin/env bash
if type "$1" >/dev/null 2>&1; then
exit 0
else
exit 1
fi