Skip to content

Commit 5737457

Browse files
committed
fix SPK_USR_LOCAL_LINKS
1 parent 574ad55 commit 5737457

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mk/spksrc.service.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ endif
170170
ifneq ($(strip $(SPK_USR_LOCAL_LINKS)),)
171171
# e.g. SPK_USR_LOCAL_LINKS=etc:var/foo lib:libs/bar
172172
@jq --arg links_str '${SPK_USR_LOCAL_LINKS}' \
173-
'. as $$in | $$links_str | split (" ") as $$l | $$l | map(split(":")[1]) as $$links | $$l | map(split(":")[0]) | unique | map( . as $$key | $$key | {(.): $$links } ) | add as $$arr | $$in |."usr-local-linker" += $$arr' $@ 1<>$@
173+
'."usr-local-linker" += ($$links_str | split (" ") | map(split(":")) | group_by(.[0]) | map({(.[0][0]) : map(.[1])}) | add )' $@ 1<>$@
174174
endif
175175
ifneq ($(strip $(SERVICE_WIZARD_SHARE)),)
176176
# e.g. SERVICE_WIZARD_SHARE=wizard_download_dir

0 commit comments

Comments
 (0)