Skip to content

Commit b1609f2

Browse files
committed
inject-cmdline-to-template.sh: simplify yq filter
Signed-off-by: Norio Nomura <[email protected]>
1 parent 3c289ee commit b1609f2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

hack/inject-cmdline-to-template.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ esac
2929

3030
# 2. extract location by parsing template using arch
3131
readonly yq_filter="
32-
[
33-
.images | map(select(.arch == \"${arch}\")) | [.[].location]
34-
]|flatten|.[]
32+
.images[]|select(.arch == \"${arch}\")|.location
3533
"
3634
parsed=$(yq eval "${yq_filter}" "${template}")
3735

0 commit comments

Comments
 (0)