dotfiles/bin/is-executable

8 lines
80 B
Bash
Executable File

#!/usr/bin/env bash
if [ -x "$(command -v $1)" ]; then
exit 0
else
exit 1
fi