mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-24 16:47:58 +02:00
Merge branch '288-libstd-add-function-def_cmd' into 'master'
Resolve "libstd: add function def_cmd" Closes #288 See merge request Pmodules/src!266
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