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

View file

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