termux-tools: Add Mirror:HIT (#9305)

This commit is contained in:
2096779623 2022-03-06 10:59:12 +08:00 committed by GitHub
parent 8830175dc9
commit 845b40e078
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://termux.org/
TERMUX_PKG_DESCRIPTION="Basic system tools for Termux"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.166
TERMUX_PKG_VERSION=0.167
TERMUX_PKG_SKIP_SRC_EXTRACT=true
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_ESSENTIAL=true

View File

@ -92,6 +92,12 @@ select_repository() {
ROOT="https://mirrors.ustc.edu.cn/termux/apt/termux-root"
X11="https://mirrors.ustc.edu.cn/termux/apt/termux-x11"
elif [ "$1" == "Mirrors by HIT" ]; then
echo "[*] HIT (CN) mirrors selected"
MAIN="https://mirrors.hit.edu.cn/termux/apt/termux-main"
ROOT="https://mirrors.hit.edu.cn/termux/apt/termux-root"
X11="https://mirrors.hit.edu.cn/termux/apt/termux-x11"
else
echo "[!] Error: unknown repository: '$1'. Exiting"
exit 1
@ -149,6 +155,7 @@ dialog \
"Mirrors by BFSU" "Hosted on mirrors.bfsu.edu.cn" off \
"Mirrors by NJU" "Hosted on mirror.nju.edu.cn" off \
"Mirrors by USTC" "Hosted on mirrors.ustc.edu.cn" off \
"Mirrors by HIT" "Hosted on mirrors.hit.edu.cn" off \
2> "$TEMPFILE"
retval=$?