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 fb0c43164c
commit e9d12e3799
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=shairport-sync
PKG_VERSION:=3.3.9
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/mikebrady/shairport-sync/tar.gz/$(PKG_VERSION)?

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
}