feat(脚本): 修复因为sudo未安装导致脚本卡住问题

master
mack-a 2025-08-19 16:09:57 +08:00
parent 987b2ccda5
commit 49a12b14cc
1 changed files with 6 additions and 6 deletions

View File

@ -1096,6 +1096,11 @@ installTools() {
${installType} epel-release >/dev/null 2>&1 ${installType} epel-release >/dev/null 2>&1
fi 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 if ! find /usr/bin /usr/sbin | grep -q -w wget; then
echoContent green " ---> 安装wget" echoContent green " ---> 安装wget"
${installType} wget >/dev/null 2>&1 ${installType} wget >/dev/null 2>&1
@ -1163,11 +1168,6 @@ installTools() {
${installType} qrencode >/dev/null 2>&1 ${installType} qrencode >/dev/null 2>&1
fi 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 if ! find /usr/bin /usr/sbin | grep -q -w lsb-release; then
echoContent green " ---> 安装lsb-release" echoContent green " ---> 安装lsb-release"
${installType} lsb-release >/dev/null 2>&1 ${installType} lsb-release >/dev/null 2>&1
@ -9945,7 +9945,7 @@ menu() {
cd "$HOME" || exit cd "$HOME" || exit
echoContent red "\n==============================================================" echoContent red "\n=============================================================="
echoContent green "作者mack-a" echoContent green "作者mack-a"
echoContent green "当前版本v3.4.23" echoContent green "当前版本v3.4.24"
echoContent green "Githubhttps://github.com/mack-a/v2ray-agent" echoContent green "Githubhttps://github.com/mack-a/v2ray-agent"
echoContent green "描述:八合一共存脚本\c" echoContent green "描述:八合一共存脚本\c"
showInstallStatus showInstallStatus