mirror of https://github.com/hak5/openwrt.git
imagebuilder: properly escape single quotes in device titles
The name "Plat'Home OpenBlocks AX3" causes the imagebuilders "make info" command to fail with: bash: -c: line 0: syntax error near unexpected token `(' bash: -c: line 0: `echo; [...]' Makefile:99: recipe for target '_call_info' failed Properly escape single quotes to avoid breaking the echo commands. Signed-off-by: Jo-Philipp Wich <jo@mein.io>openwrt-18.06
parent
b94177e10f
commit
6cb8e30837
|
@ -74,7 +74,7 @@ include $(INCLUDE_DIR)/target.mk
|
||||||
|
|
||||||
USER_PROFILE ?= $(firstword $(PROFILE_NAMES))
|
USER_PROFILE ?= $(firstword $(PROFILE_NAMES))
|
||||||
PROFILE_LIST = $(foreach p,$(PROFILE_NAMES), \
|
PROFILE_LIST = $(foreach p,$(PROFILE_NAMES), \
|
||||||
echo '$(patsubst DEVICE_%,%,$(p)):'; $(if $($(p)_NAME),echo ' $($(p)_NAME)'; ) echo ' Packages: $($(p)_PACKAGES)'; \
|
echo '$(patsubst DEVICE_%,%,$(p)):'; $(if $($(p)_NAME),echo ' $(subst ','"'"',$($(p)_NAME))'; ) echo ' Packages: $($(p)_PACKAGES)'; \
|
||||||
)
|
)
|
||||||
|
|
||||||
.profiles.mk: .targetinfo
|
.profiles.mk: .targetinfo
|
||||||
|
|
Loading…
Reference in New Issue