Skip to content

Commit

Permalink
Properly set segment key
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanp413 committed Sep 7, 2023
1 parent 69395db commit b4e7ce7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/ide/code/leeway.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ RUN nameShort=$(jq --raw-output '.nameShort' product.json) && \
setQuality="setpath([\"quality\"]; \"$CODE_QUALITY\")" && \
setNameShort="setpath([\"nameShort\"]; \"$nameShort\")" && \
setNameLong="setpath([\"nameLong\"]; \"$nameLong\")" && \
setSegmentKey="setpath([\"segmentKey\"]; \"untrusted-dummy-key\")" && \
setExtensionsGalleryItemUrl="setpath([\"extensionsGallery\", \"itemUrl\"]; \"{{extensionsGalleryItemUrl}}\")" && \
addTrustedDomain=".linkProtectionTrustedDomains += [\"{{trustedDomain}}\"]" && \
jqCommands="${setQuality} | ${setNameShort} | ${setNameLong} | ${setExtensionsGalleryItemUrl} | ${addTrustedDomain}" && \
jqCommands="${setQuality} | ${setNameShort} | ${setNameLong} | ${setSegmentKey} | ${setExtensionsGalleryItemUrl} | ${addTrustedDomain}" && \
cat product.json | jq "${jqCommands}" > product.json.tmp && \
mv product.json.tmp product.json && \
jq '{quality,nameLong,nameShort}' product.json
Expand Down

0 comments on commit b4e7ce7

Please sign in to comment.