Files
ShellCrash/scripts/libs/check_cmd.sh
2025-12-21 22:11:05 +08:00

8 lines
144 B
Bash

ckcmd() {
if command -v sh >/dev/null 2>&1;then
command -v "$1" >/dev/null 2>&1
else
type "$1" >/dev/null 2>&1
fi
}