File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 54
54
for cmd in screen proot-distro; do
55
55
command -v " $cmd " > /dev/null 2>&1 || pkg install -y " $cmd "
56
56
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
61
64
mv " $PREFIX /etc/apt/sources.list.bak" " $PREFIX /etc/apt/sources.list"
62
65
63
66
You can’t perform that action at this time.
0 commit comments