We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a6ff0f4 + 77fbe15 commit bd72690Copy full SHA for bd72690
diff-pr.sh
@@ -295,7 +295,17 @@ _metadata-files() {
295
mkdir -p "$dir"
296
bashbrew remote arches --json "$pin@$digest" | jq -S . > "$dir/bashbrew.json"
297
local manifests manifest
298
- manifests="$(jq -r '[ .arches[][].digest | @sh ] | join(" ")' "$dir/bashbrew.json")"
+ manifests="$(jq -r '
299
+ [ (
300
+ .arches
301
+ | if has(env.BASHBREW_ARCH) then
302
+ .[env.BASHBREW_ARCH]
303
+ else
304
+ .[keys_unsorted | first]
305
+ end
306
+ )[].digest | @sh ]
307
+ | join(" ")
308
+ ' "$dir/bashbrew.json")"
309
eval "manifests=( $manifests )"
310
for manifest in "${manifests[@]}"; do
311
crane manifest "$pin@$manifest" | jq -S . > "$dir/manifest-${manifest//:/_}.json"
0 commit comments