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