Add check for function defined to delegation
This commit is contained in:
parent
0e70a1b471
commit
3d01d93246
3
cmd
3
cmd
|
@ -553,7 +553,8 @@ done
|
||||||
if [[ -n "$1" ]]; then
|
if [[ -n "$1" ]]; then
|
||||||
declare CMD="$1"; shift
|
declare CMD="$1"; shift
|
||||||
for c in "${COMMANDS[@]}"; do
|
for c in "${COMMANDS[@]}"; do
|
||||||
if [[ $c == "$CMD" ]]; then
|
declare cmd=$(command -v "x.$c")
|
||||||
|
if [[ $c == "$CMD" && -n "$cmd" ]]; then
|
||||||
"x.$CMD" "$@"
|
"x.$CMD" "$@"
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue