From 35a10753927d135e95e461708af92bad3874804c Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Sun, 24 Jan 2021 09:47:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Xray=20=E4=BF=9D=E6=8C=81?= =?UTF-8?q?=E6=9C=80=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/AutoBuild_Function.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Scripts/AutoBuild_Function.sh b/Scripts/AutoBuild_Function.sh index 4b02bdb..d04d24a 100644 --- a/Scripts/AutoBuild_Function.sh +++ b/Scripts/AutoBuild_Function.sh @@ -19,15 +19,15 @@ GET_TARGET_INFO() { Diy_Part1_Base() { Diy_Core Mkdir package/lean - if [[ "${INCLUDE_Latest_Xray}" == "true" ]];then - Update_Makefile xray package/lean/xray - Update_Makefile v2ray package/lean/v2ray - Update_Makefile v2ray-plugin package/lean/v2ray-plugin - fi if [[ "${INCLUDE_SSR_Plus}" == "true" ]];then ExtraPackages git lean helloworld https://github.com/fw876 master sed -i 's/143/143,25,5222/' package/lean/helloworld/luci-app-ssr-plus/root/etc/init.d/shadowsocksr fi + if [[ "${INCLUDE_Latest_Xray}" == "true" ]];then + Update_Makefile xray package/lean/helloworld/xray + Update_Makefile v2ray package/lean/v2ray + Update_Makefile v2ray-plugin package/lean/v2ray-plugin + fi if [[ "${INCLUDE_AutoBuild_Tools}" == "true" ]];then Replace_File Scripts/AutoBuild_Tools.sh package/base-files/files/bin fi @@ -43,7 +43,7 @@ Diy_Part2_Base() { Diy_Core GET_TARGET_INFO if [[ "${INCLUDE_Enable_FirewallPort_53}" == "true" ]];then - sed -i "s?iptables?#iptables?g" ${Default_File} > /dev/null 2>&1 + [ -f "${Default_File}" ] && sed -i "s?iptables?#iptables?g" ${Default_File} > /dev/null 2>&1 fi if [[ "${INCLUDE_AutoUpdate}" == "true" ]];then ExtraPackages git lean luci-app-autoupdate https://github.com/Hyy2001X main