Use better expansion and parameter setting

This commit is contained in:
Darko Poljak 2018-09-23 11:42:09 +02:00
parent b47a828af0
commit a63e16efc5
1 changed files with 2 additions and 7 deletions

View File

@ -247,13 +247,8 @@ _techo()
{
if [ "${LOGLEVEL}" = "a" ]
then
tag="${name:-}"
if [ "${tag}" ]; then
tag="[${tag}]"
else
tag=""
fi
"${_techof}" ${tag} "$@"
set -- ${name:+"[${name}]"} $@
"${_techof}" "$@"
fi
}