mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-04-28 05:23:42 +00:00
~拆分脚本,大幅度优化结构
This commit is contained in:
7
scripts/libs/check_cmd.sh
Normal file
7
scripts/libs/check_cmd.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user