Correct typo, bad copy/paste

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

View File

@ -68,14 +68,14 @@ verbose "Copied \'$1\' in folder: /opt/docker/$in/addons/"
__dirname="$(dirname $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" ]
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