core: 优化代码

This commit is contained in:
bin456789
2024-03-18 23:56:10 +08:00
parent b5e4dbc5f9
commit 1d78368c00
2 changed files with 26 additions and 18 deletions

View File

@ -64,6 +64,7 @@ apk() {
# busybox 的 wget 没有重试功能
wget() {
echo "$@" | grep -o 'http[^ ]*' >&2
for i in $(seq 5); do
command wget "$@" && return
sleep 1