From 49a12b14cc60b0a4bb5851f19047d2fb70339f5f Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Tue, 19 Aug 2025 16:09:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=84=9A=E6=9C=AC):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=9B=A0=E4=B8=BAsudo=E6=9C=AA=E5=AE=89=E8=A3=85=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E8=84=9A=E6=9C=AC=E5=8D=A1=E4=BD=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 2d6ed05..97bfe87 100644 --- a/install.sh +++ b/install.sh @@ -1096,6 +1096,11 @@ installTools() { ${installType} epel-release >/dev/null 2>&1 fi + if ! find /usr/bin /usr/sbin | grep -q -w sudo; then + echoContent green " ---> 安装sudo" + ${installType} sudo >/dev/null 2>&1 + fi + if ! find /usr/bin /usr/sbin | grep -q -w wget; then echoContent green " ---> 安装wget" ${installType} wget >/dev/null 2>&1 @@ -1163,11 +1168,6 @@ installTools() { ${installType} qrencode >/dev/null 2>&1 fi - if ! find /usr/bin /usr/sbin | grep -q -w sudo; then - echoContent green " ---> 安装sudo" - ${installType} sudo >/dev/null 2>&1 - fi - if ! find /usr/bin /usr/sbin | grep -q -w lsb-release; then echoContent green " ---> 安装lsb-release" ${installType} lsb-release >/dev/null 2>&1 @@ -9945,7 +9945,7 @@ menu() { cd "$HOME" || exit echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v3.4.23" + echoContent green "当前版本:v3.4.24" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:八合一共存脚本\c" showInstallStatus