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 ..."