diff --git a/oci/private/image.sh b/oci/private/image.sh index 539c2a8e..195146c0 100644 --- a/oci/private/image.sh +++ b/oci/private/image.sh @@ -166,7 +166,7 @@ for ARG in "$@"; do --annotations=*) get_manifest | jq --rawfile annotations "${ARG#--annotations=}" \ - '.annotations += ($annotations | split("\n") | map(. | split("=")) | map({key: .[0], value: .[1:] | join("=")}) | from_entries)' | + '.annotations += ([($annotations | split("\n") | .[] | select(. != ""))] | map(. | split("=")) | map({key: .[0], value: .[1:] | join("=")}) | from_entries)' | update_manifest ;; *)