fix bug
This commit is contained in:
parent
d033132a26
commit
58d9695425
|
@ -115,8 +115,9 @@ function mirror()
|
||||||
sleep 30
|
sleep 30
|
||||||
compare
|
compare
|
||||||
|
|
||||||
|
while true
|
||||||
|
do
|
||||||
tmps=$(find ./gcr.io_mirror/ -type f \( -iname "*.tmp" \) -exec dirname {} \; | uniq | cut -d'/' -f3-4)
|
tmps=$(find ./gcr.io_mirror/ -type f \( -iname "*.tmp" \) -exec dirname {} \; | uniq | cut -d'/' -f3-4)
|
||||||
|
|
||||||
if [ -n "$tmps[@]" ]; then
|
if [ -n "$tmps[@]" ]; then
|
||||||
echo -e "${red} wait for push ${tmps[@]}"
|
echo -e "${red} wait for push ${tmps[@]}"
|
||||||
for img in ${tmps[@]} ; do
|
for img in ${tmps[@]} ; do
|
||||||
|
@ -124,8 +125,12 @@ function mirror()
|
||||||
image=$(echo ${img}|cut -d'/' -f2)
|
image=$(echo ${img}|cut -d'/' -f2)
|
||||||
process_run "pull_push_diff $n $image"
|
process_run "pull_push_diff $n $image"
|
||||||
done
|
done
|
||||||
wait ${!}
|
wait
|
||||||
|
else
|
||||||
|
break
|
||||||
fi
|
fi
|
||||||
|
sleep 30
|
||||||
|
done
|
||||||
|
|
||||||
images=($(find ./gcr.io_mirror/ -type f -name "*.tag" |uniq|sort))
|
images=($(find ./gcr.io_mirror/ -type f -name "*.tag" |uniq|sort))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue