dotfiles/bin/is-executable

8 lines
80 B
Text
Raw Normal View History

2021-12-08 09:38:24 -06:00
#!/usr/bin/env bash
2022-01-19 11:49:06 -06:00
if [ -x "$(command -v $1)" ]; then
2022-07-06 11:55:14 -05:00
exit 0
2021-12-08 09:38:24 -06:00
else
2022-07-06 11:55:14 -05:00
exit 1
2022-05-18 00:21:46 -05:00
fi