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

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