mirror of
https://github.com/tonydamage/nux-env.git
synced 2025-12-11 13:24:28 +01:00
Moved is_function and runner.run to inc/
Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
This commit is contained in:
parent
135eabc57c
commit
8267bc2e12
4 changed files with 32 additions and 30 deletions
|
|
@ -5,12 +5,12 @@ function exec.if.function {
|
|||
DEFAULT_NAME=$2;
|
||||
shift; shift;
|
||||
|
||||
if is_function $FUNC_NAME; then
|
||||
if nux.check.function $FUNC_NAME; then
|
||||
nux.log debug Executing: $FUNC_NAME "$@";
|
||||
$FUNC_NAME "$@";
|
||||
return;
|
||||
fi
|
||||
if is_function $DEFAULT_NAME; then
|
||||
if nux.check.function $DEFAULT_NAME; then
|
||||
nux.log debug Executing: $FUNC_NAME "$@";
|
||||
$DEFAULT_NAME "$@";
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue