From e9d12e379959ca18fa17bb4d9ecbbdcef4f185ac Mon Sep 17 00:00:00 2001 From: Liangbin Lian Date: Tue, 11 Jul 2023 15:59:54 +0800 Subject: [PATCH] shairport-sync: fix init script 'name' may contains '%h' or '%v', printf will fail on that Signed-off-by: Liangbin Lian (cherry picked from commit 97ec5d2a6855180295c024782aad50da8081504f) --- sound/shairport-sync/Makefile | 2 +- sound/shairport-sync/files/shairport-sync.init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/shairport-sync/Makefile b/sound/shairport-sync/Makefile index 653aab7d01..26310d50da 100644 --- a/sound/shairport-sync/Makefile +++ b/sound/shairport-sync/Makefile @@ -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)? diff --git a/sound/shairport-sync/files/shairport-sync.init b/sound/shairport-sync/files/shairport-sync.init index 7289768299..1f0877535e 100644 --- a/sound/shairport-sync/files/shairport-sync.init +++ b/sound/shairport-sync/files/shairport-sync.init @@ -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 } -- 2.30.2