Update deploy.sh

This commit is contained in:
AnJia 2018-10-11 09:12:13 +08:00 committed by GitHub
parent 636391ef0d
commit e4e11abdef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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}"