termux-tools: Add Mirror:HIT (#9305)
This commit is contained in:
parent
8830175dc9
commit
845b40e078
@ -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
|
||||
|
@ -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=$?
|
||||
|
Loading…
Reference in New Issue
Block a user