Correct typo, bad copy/paste

This commit is contained in:
dig 2018-06-29 15:39:12 +02:00
parent dbc89506d0
commit a1f1e4cbb5
1 changed files with 5 additions and 5 deletions

View File

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