8 lines
215 B
Bash
Executable File
8 lines
215 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
BASE_LAYERS="$(skopeo inspect $1 | jq '.Layers')"
|
|
DERIVED_LAYERS="$(skopeo inspect $2 | jq '.Layers')"
|
|
|
|
jq '.base - .derived | .!=[]' <<< "{\"base\": $BASE_LAYERS, \"derived\": $DERIVED_LAYERS}" |