Correct typo, bad copy/paste

This commit is contained in:
dig 2018-06-29 15:37:55 +02:00
parent 8c77e65a2c
commit dbc89506d0
1 changed files with 4 additions and 4 deletions

View File

@ -63,12 +63,12 @@ __dirtask="$__dirname/.$(basename $0)"
# Calls command (1rt argument) as script or function \$1( \$2 \$3 ... )
if [ -r "$__dirtask/$1" ]
verbose "Command file exists call it: \$__dirtask/\$1 \${*:2}"
\$__dirtask/\$1 \${*:2}
verbose "Command file exists call it: $__dirtask/$1 ${*:2}"
$__dirtask/$1 ${*:2}
else
if [ -n "$(type -t $1)" ] && [ "$(type -t $1)" = function ];
then
verbose "\$__dirtask/\$1 not exists try func: \$1 \${*:2}"
\$1 "\${*:2}"
verbose "$__dirtask/$1 not exists try func: $1 ${*:2}"
$1 "${*:2}"
fi
fi