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:
parent
dc7382ec65
commit
97ec5d2a68
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue