mirror of https://github.com/mack-a/v2ray-agent
feat(脚本): 修复因为sudo未安装导致脚本卡住问题
parent
987b2ccda5
commit
49a12b14cc
12
install.sh
12
install.sh
|
@ -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 "Github:https://github.com/mack-a/v2ray-agent"
|
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
|
||||||
echoContent green "描述:八合一共存脚本\c"
|
echoContent green "描述:八合一共存脚本\c"
|
||||||
showInstallStatus
|
showInstallStatus
|
||||||
|
|
Loading…
Reference in New Issue