mirror of
https://github.com/bin456789/reinstall.git
synced 2025-12-10 07:28:56 +08:00
core: 添加非 LTS 版本
This commit is contained in:
2
trans.sh
2
trans.sh
@ -5368,7 +5368,7 @@ sync_time() {
|
||||
ntpd -d -n -q -p "$ntp_server"
|
||||
;;
|
||||
http)
|
||||
url=$(grep -m1 ^http /etc/apk/repositories)
|
||||
url="$(grep -m1 ^http /etc/apk/repositories)/$(uname -m)/APKINDEX.tar.gz"
|
||||
# 可能有多行,取第一行
|
||||
date_header=$(wget -S --no-check-certificate --spider "$url" 2>&1 | grep -m1 '^ Date:')
|
||||
# gnu date 不支持 -D
|
||||
|
||||
Reference in New Issue
Block a user