mirror of
https://github.com/anjia0532/gcr.io_mirror.git
synced 2025-09-23 20:29:22 +08:00
fix bug
This commit is contained in:
@@ -117,7 +117,7 @@ function mirror()
|
|||||||
|
|
||||||
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 [ -z "$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
|
||||||
n=$(echo ${img}|cut -d'/' -f1)
|
n=$(echo ${img}|cut -d'/' -f1)
|
||||||
|
Reference in New Issue
Block a user