mirror of
https://github.com/DaoCloud/public-image-mirror.git
synced 2025-08-07 16:50:47 +08:00
Fix target sync (#411)
This commit is contained in:
@@ -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}")
|
||||||
|
Reference in New Issue
Block a user