Skip to content

Commit 053583d

Browse files
committed
修改
1 parent 8816266 commit 053583d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Termux/install-NC

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,13 @@ fi
5454
for cmd in screen proot-distro; do
5555
command -v "$cmd" >/dev/null 2>&1 || pkg install -y "$cmd"
5656
done
57-
log "INFO" "安装debian容器..."
58-
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"
59-
proot-distro install debian --override-alias nc
60-
log "INFO" "安装完成!"
57+
58+
if [ ! -d "$PREFIX/var/lib/proot-distro/installed-rootfs/nc/" ]; then
59+
log "INFO" "安装debian容器..."
60+
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"
61+
proot-distro install debian --override-alias nc
62+
log "INFO" "安装完成!"
63+
if
6164
mv "$PREFIX/etc/apt/sources.list.bak" "$PREFIX/etc/apt/sources.list"
6265

6366

0 commit comments

Comments
 (0)