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