Fix target sync (#408)

This commit is contained in:
Shiming Zhang 2023-10-12 17:57:29 +08:00 committed by GitHub
parent 0ba5ec99b0
commit 26da880f54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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 $?
}