mirror of
https://github.com/openwrt/packages.git
synced 2026-12-05 00:15:45 +04:00
shairport-sync: fix init script
'name' may contains '%h' or '%v', printf will fail on that Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
This commit is contained in:
1 parent
dc7382ec65
commit
97ec5d2a68
2 files changed
+2
-2
No files matched your search
@@ -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)?
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user