Fix target sync (#411)
This commit is contained in:
parent
26da880f54
commit
fd9ca3c4df
|
@ -296,14 +296,13 @@ function main() {
|
||||||
local image2="${2:-}"
|
local image2="${2:-}"
|
||||||
|
|
||||||
if [[ "${image1#*/}" =~ ":" ]]; then
|
if [[ "${image1#*/}" =~ ":" ]]; then
|
||||||
diff-image-with-tag "${image1}" "${image2}" >/dev/null || {
|
if [[ "${SYNC}" == "true" ]]; then
|
||||||
if [[ "${SYNC}" == "true" ]]; then
|
echo "${SELF}: SYNCHRONIZE: synchronize from ${image1} to ${image2}" >&2
|
||||||
echo "${SELF}: SYNCHRONIZE: synchronize from ${image1} to ${image2}" >&2
|
copy-image "${image1}" "${image2}"
|
||||||
copy-image "${image1}" "${image2}"
|
|
||||||
fi
|
|
||||||
return $?
|
return $?
|
||||||
}
|
fi
|
||||||
return 0
|
diff-image-with-tag "${image1}" "${image2}" >/dev/null
|
||||||
|
return $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local list=$(diff-image "${image1}" "${image2}")
|
local list=$(diff-image "${image1}" "${image2}")
|
||||||
|
|
Loading…
Reference in New Issue