修复在没有安装aptss时安装内核会提示错误1

This commit is contained in:
gfdgd xi 2024-05-18 09:54:41 +08:00
parent 86f7263b91
commit 86759a1bc5
3 changed files with 3 additions and 6 deletions

@ -2,8 +2,7 @@
set -e
rm /tmp/gxde-kernel-manager-installer-status -f
aptPath="apt"
which aptss > /dev/null
if [[ $? == 0 ]]; then
if [[ -f "/usr/bin/aptss" ]]; then
# 如果 aptss 存在,则使用 aptss
aptPath="aptss"
fi

@ -2,8 +2,7 @@
set -e
rm /tmp/gxde-kernel-manager-installer-status -f
aptPath="apt"
which aptss > /dev/null
if [[ $? == 0 ]]; then
if [[ -f "/usr/bin/aptss" ]]; then
# 如果 aptss 存在,则使用 aptss
aptPath="aptss"
fi

@ -2,8 +2,7 @@
set -e
rm /tmp/gxde-kernel-manager-installer-status -f
aptPath="apt"
which aptss > /dev/null
if [[ $? == 0 ]]; then
if [[ -f "/usr/bin/aptss" ]]; then
# 如果 aptss 存在,则使用 aptss
aptPath="aptss"
fi