Skip to content

Commit

Permalink
--unwrapScalar for yq cmd (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
kczulko authored May 29, 2024
1 parent 91ac23b commit 985b183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oci/private/push.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ while (( $# > 0 )); do
esac
done

DIGEST=$("${YQ}" eval '.manifests[0].digest' "${IMAGE_DIR}/index.json")
DIGEST=$("${YQ}" --unwrapScalar eval '.manifests[0].digest' "${IMAGE_DIR}/index.json")

REFS=$(mktemp)
"${CRANE}" push "${IMAGE_DIR}" "${REPOSITORY}@${DIGEST}" "${ARGS[@]+"${ARGS[@]}"}" --image-refs "${REFS}"
Expand Down

0 comments on commit 985b183

Please sign in to comment.