1
0
mirror of https://github.com/bin456789/reinstall.git synced 2025-08-14 21:31:49 +00:00

core: install_pkg 跳过 windows 环境

This commit is contained in:
bin456789
2023-07-22 22:25:54 +08:00
parent 94cdb26c89
commit 7db0f0775f

@@ -411,6 +411,8 @@ apt_install() {
install_pkg() { install_pkg() {
cmds=$* cmds=$*
is_in_windows && return
# arch 需先加载 squashfs 模块 # arch 需先加载 squashfs 模块
# arch 安装软件时一旦升级了内核,旧的内核文件夹就立即被删除,无法再加载模块 # arch 安装软件时一旦升级了内核,旧的内核文件夹就立即被删除,无法再加载模块
if ! lsmod | grep squashfs; then if ! lsmod | grep squashfs; then