From d3e960f270e18a6f541fc2b0f1a1553de7a6dd72 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Thu, 9 Sep 2021 10:48:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=84=9A=E6=9C=AC):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=94=B1=E4=BA=8Edebian=E6=94=B9=E5=90=8D=EF=BC=8C=E5=BC=95?= =?UTF-8?q?=E8=B5=B7=E7=9A=84=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E5=B7=A5=E5=85=B7=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 4b956a0..42fe036 100644 --- a/install.sh +++ b/install.sh @@ -53,12 +53,14 @@ checkSystem() { release="debian" installType='apt -y install' upgrade="apt update" + updateReleaseInfoChange='apt-get --allow-releaseinfo-change update' removeType='apt -y autoremove' elif grep 检查、安装更新【新机器会很慢,如长时间无反应,请手动停止后重新执行】" - ${upgrade} >/dev/null 2>&1 + ${upgrade} >/etc/v2ray-agent/install.log 2>&1 + if grep <"/etc/v2ray-agent/install.log" -q "changed"; then + ${updateReleaseInfoChange} >/dev/null 2>&1 + fi + if [[ "${release}" == "centos" ]]; then rm -rf /var/run/yum.pid ${installType} epel-release >/dev/null 2>&1 @@ -4122,7 +4128,7 @@ menu() { cd "$HOME" || exit echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v2.5.32" + echoContent green "当前版本:v2.5.33" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:八合一共存脚本\c" showInstallStatus