From 86759a1bc5accfb531ee9fafc6dc2b509781d9e7 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sat, 18 May 2024 09:54:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E5=AE=89=E8=A3=85aptss=E6=97=B6=E5=AE=89=E8=A3=85=E5=86=85?= =?UTF-8?q?=E6=A0=B8=E4=BC=9A=E6=8F=90=E7=A4=BA=E9=94=99=E8=AF=AF1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/kernel-installer-template.sh | 3 +-- shell/kernel-installer-update-template.sh | 3 +-- shell/kernel-installer-upgrade-template.sh | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/shell/kernel-installer-template.sh b/shell/kernel-installer-template.sh index 736aee8..0ae5453 100644 --- a/shell/kernel-installer-template.sh +++ b/shell/kernel-installer-template.sh @@ -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 diff --git a/shell/kernel-installer-update-template.sh b/shell/kernel-installer-update-template.sh index 88b6249..8f5f93e 100644 --- a/shell/kernel-installer-update-template.sh +++ b/shell/kernel-installer-update-template.sh @@ -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 diff --git a/shell/kernel-installer-upgrade-template.sh b/shell/kernel-installer-upgrade-template.sh index 2f585ff..601e527 100644 --- a/shell/kernel-installer-upgrade-template.sh +++ b/shell/kernel-installer-upgrade-template.sh @@ -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