dotfiles/bin/is-executable

7 lines
81 B
Text
Raw Normal View History

2021-12-08 09:38:24 -06:00
#!/usr/bin/env bash
if type "$1" >/dev/null 2>&1; then
exit 0
else
exit 1
fi