Correct typo, bad copy/paste

master
dig 4 years ago
parent a1f1e4cbb5
commit 28f940ccda
  1. 10
      awesome-tasks/.odoo/install

@ -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
Loading…
Cancel
Save