Skip to content

Commit d12dd05

Browse files
committed
修改
1 parent 053583d commit d12dd05

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Termux/install-NC

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ if [ ! -d "$PREFIX/var/lib/proot-distro/installed-rootfs/nc/" ]; then
6060
export PD_OVERRIDE_TARBALL_URL="https://gitee.com/Dong-Jing-Yu/Dong-Jing-Yu.gitee.io/raw/main/Termux/proot-distro/debian-bookworm-aarch64-pd-v4.17.3.tar.xz"
6161
proot-distro install debian --override-alias nc
6262
log "INFO" "安装完成!"
63-
if
63+
fi
6464
mv "$PREFIX/etc/apt/sources.list.bak" "$PREFIX/etc/apt/sources.list"
6565

6666

67-
init_cmd="apt update -y && apt upgrade -y && \
67+
init_cmd="apt update -y && \
6868
apt install -y sudo curl && \
6969
curl -O https://gitee.com/Dong-Jing-Yu/Dong-Jing-Yu.gitee.io/raw/main/Termux/napcat.sh && \
70-
sudo bash napcat.sh --docker n --cli n && \
70+
sudo bash napcat.sh --tui && \
7171
apt autoremove -y && \
7272
apt clean && \
7373
rm -rf /tmp/* /var/lib/apt/lists"

Termux/napcat.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function network_test() {
139139
local status=0
140140
target_proxy=""
141141

142-
local current_proxy_setting="${proxy_num_arg:-9}"
142+
local current_proxy_setting="${proxy_num_arg:-10}"
143143

144144
log "开始网络测试: ${parm1}..."
145145
# 观察实际使用的代理设置
@@ -1290,4 +1290,4 @@ else
12901290
# This case should not be reached if logic above is correct
12911291
log "错误: 无效的安装选项 (use_docker=${use_docker})。"
12921292
exit 1
1293-
fi
1293+
fi

0 commit comments

Comments
 (0)