From 7000a863148620ff1c5d48601a3580f6b27059ed Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Thu, 4 Feb 2021 16:44:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E4=B8=8A=E6=B8=B8=E6=94=B9?= =?UTF-8?q?=E5=8A=A8:=20xray=20->=20xray-core?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/AutoBuild_Function.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Scripts/AutoBuild_Function.sh b/Scripts/AutoBuild_Function.sh index c1bb168..c39c312 100644 --- a/Scripts/AutoBuild_Function.sh +++ b/Scripts/AutoBuild_Function.sh @@ -24,9 +24,9 @@ Diy_Part1_Base() { sed -i 's/143/143,25,5222/' package/lean/helloworld/luci-app-ssr-plus/root/etc/init.d/shadowsocksr fi if [[ "${INCLUDE_Keep_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 + Update_Makefile xray-core package/lean/helloworld/xray-core + # 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 @@ -187,7 +187,7 @@ Update_Makefile() { sed -i "s?PKG_VERSION:=${Source_Version}?PKG_VERSION:=${Offical_Version}?g" ${Makefile} wget -q "${PKG_DL_URL}${Offical_Version}?" -O /tmp/tmp_file if [[ "$?" -eq 0 ]];then - Offical_HASH=$(sha256sum /tmp/tmp_file | cut -d ' ' -f1) + Offical_HASH="$(sha256sum /tmp/tmp_file | cut -d ' ' -f1)" sed -i "s?PKG_HASH:=${Source_HASH}?PKG_HASH:=${Offical_HASH}?g" ${Makefile} else echo "Failed to update the package [${PKG_NAME}],skip update ..."