mirror of
https://github.com/DaoCloud/public-image-mirror.git
synced 2025-09-12 22:07:00 +08:00
Fix target sync (#408)
This commit is contained in:
@@ -298,8 +298,8 @@ function main() {
|
|||||||
if [[ "${image1#*/}" =~ ":" ]]; then
|
if [[ "${image1#*/}" =~ ":" ]]; then
|
||||||
diff-image-with-tag "${image1}" "${image2}" >/dev/null || {
|
diff-image-with-tag "${image1}" "${image2}" >/dev/null || {
|
||||||
if [[ "${SYNC}" == "true" ]]; then
|
if [[ "${SYNC}" == "true" ]]; then
|
||||||
echo "${SELF}: SYNCHRONIZE: synchronize from ${image1}:${tag} to ${image2}:${tag}" >&2
|
echo "${SELF}: SYNCHRONIZE: synchronize from ${image1} to ${image2}" >&2
|
||||||
copy-image "${image1}:${tag}" "${image2}:${tag}"
|
copy-image "${image1}" "${image2}"
|
||||||
fi
|
fi
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user