mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-07-07 14:20:50 +02:00
libstd: function def_cmd added
This commit is contained in:
@@ -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