shairport-sync: fix init script

'name' may contains '%h' or '%v', printf will fail on that

Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
(cherry picked from commit 97ec5d2a68)
This commit is contained in:
Liangbin Lian 2023-07-11 15:59:54 +08:00 committed by Rosen Penev
parent 111b2b86a5
commit c4bebaf6d9
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ append_str() {
config_get val "$cfg" "$var"
if [ -n "$val" ] || [ -n "$def" ]; then
printf "\t%s = \"${val:-$def}\";\n" "$opt"
printf "\t%s = \"%s\";\n" "$opt" "${val:-$def}"
fi
}