mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-11-11 16:53:55 +01:00
libstd: function def_cmd added
This commit is contained in:
1 parent
86e996b588
commit
81eed3a716
1 file changed
+4
@@ -35,6 +35,10 @@ std::die() {
|
||||
exit $ec
|
||||
}
|
||||
|
||||
std::def_cmd(){
|
||||
which "$1" 2>/dev/null || std::die 255 "'$1' not found!"
|
||||
}
|
||||
|
||||
std::def_cmds(){
|
||||
local path="$1"
|
||||
shift
|
||||
|
||||
Reference in new issue
Block a user