From cf621a47aca61385285d3f576b84b03803d042f0 Mon Sep 17 00:00:00 2001 From: juewuy Date: Sat, 19 Sep 2020 22:06:01 +0800 Subject: [PATCH] =?UTF-8?q?v1.0.0beta7fix=20~=E4=BF=AE=E5=A4=8D=E6=89=8B?= =?UTF-8?q?=E5=8A=A8=E6=9B=B4=E6=96=B0=E8=AE=A2=E9=98=85=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=87=BA=E9=94=99=E7=9A=84bug=20~=E8=B0=83=E6=95=B4=E6=9C=AC?= =?UTF-8?q?=E6=9C=BA=E4=BB=A3=E7=90=86=E5=8A=9F=E8=83=BD=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/clash.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/clash.sh b/scripts/clash.sh index 24f2227..25cc8be 100644 --- a/scripts/clash.sh +++ b/scripts/clash.sh @@ -240,8 +240,7 @@ elif [[ $num == 7 ]];then echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ read -p "确认更新配置文件?[1/0] > " res if [ "$res" = '1' ]; then - source $clashdir/getdate.sh - getyaml + $clashdir/start.sh getyaml fi clashlink fi @@ -591,15 +590,18 @@ if [[ $num -le 9 ]] > /dev/null 2>&1; then sed -i "1i\local_proxy=已开启" $ccfg local_proxy=已开启 echo 'export http_proxy=http://127.0.0.1:7890' >> /etc/profile - echo 'export https_proxy=http://127.0.0.1:7890' >> /etc/profile + echo 'export https_proxy=$http_proxy' >> /etc/profile + echo 'export HTTP_PROXY=$http_proxy' >> /etc/profile + echo 'export HTTPS_PROXY=$http_proxy' >> /etc/profile echo -e "\033[32m已经将代理参数写入环境变量~\033[0m" echo -e "\033[36m如未生效,请重新登录或者重启设备!\033[0m" sleep 1 else sed -i "1i\local_proxy=未开启" $ccfg + sed -i '/http*_proxy/'d /etc/profile + sed -i '/HTTP*_PROXY/'d /etc/profile echo -e "\033[33m已经将代理参数从环境变量移除!!\033[0m" local_proxy=未开启 - sed -i '/http*_proxy/'d /etc/profile fi source /etc/profile > /dev/null 2>&1 clashadv