Fix default mediaType

This commit is contained in:
Shiming Zhang 2021-09-13 19:19:00 +08:00
parent a15952860a
commit 51c940394f
1 changed files with 2 additions and 2 deletions

View File

@ -66,9 +66,9 @@ function inspect() {
echo "${raw}" | jq -r '.fsLayers[].blobSum'
;;
2)
local mediaType=$(echo "${raw}" | jq -r '.mediaType')
local mediaType=$(echo "${raw}" | jq -r '.mediaType // "" ')
case "${mediaType}" in
"application/vnd.docker.distribution.manifest.v2+json")
"application/vnd.docker.distribution.manifest.v2+json" | "")
echo "${raw}" | jq -r '.layers[].digest'
;;
"application/vnd.docker.distribution.manifest.list.v2+json")