mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-10 23:41:22 +00:00
8 lines
144 B
Bash
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
|
|
}
|