mirror of
https://github.com/anjia0532/gcr.io_mirror.git
synced 2025-09-23 12:19:22 +08:00
Update deploy.sh
This commit is contained in:
@@ -116,8 +116,8 @@ function pull_push_diff()
|
||||
|
||||
# sleep 1 min when insufficient disk
|
||||
|
||||
space_used=$(($my_space*4+$space))
|
||||
|
||||
space_used=$((${my_space:-1048576}*4+${space:-0}))
|
||||
# cat ./abc 2>/dev/null || echo google-containers
|
||||
[[ ${space_used} -gt ${avail} || ${used} > '70%' ]] && docker system prune -f -a && sleep 120 && break;
|
||||
|
||||
echo -e "${yellow}mirror ${n}/${img}/${tag}...${plain}"
|
||||
|
Reference in New Issue
Block a user