shairport-sync: fix init script
authorLiangbin Lian <jjm2473@gmail.com>
Tue, 11 Jul 2023 07:59:54 +0000 (15:59 +0800)
committerRosen Penev <rosenp@gmail.com>
Thu, 13 Jul 2023 23:18:44 +0000 (16:18 -0700)
'name' may contains '%h' or '%v', printf will fail on that

Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
sound/shairport-sync/Makefile
sound/shairport-sync/files/shairport-sync.init

index 653aab7d01d7fb96aaaa9dd73e7c85dfc09e83f5..26310d50dac6f2e3d982c0074c224c2709db3f71 100644 (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)?
index 7289768299367b117841567b3c83c6c0ed441a86..1f0877535e13ef8b46b2d133a56aaad3128cebbe 100644 (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
 }