voice-client: fix line syntax

This commit is contained in:
Sukru Senli 2019-04-01 10:40:48 +02:00
parent 4acd35f27e
commit 60742c42b3

View file

@ -2102,8 +2102,7 @@ set_line_name()
if [ -n "$name_ix" ]; then
for item in $(db get hw.board.VoicePortNames); do
if [ $ix -eq $name_ix ]; then
uci_set voice_client $tel_line name \
"$(echo "$item" |tr "[_]" "[ ]")"
uci_set voice_client $tel_line name "$(echo '$item' |tr '[_]' '[ ]')"
return
fi
ix=$((ix+1))