From 60ca90394f5ff14fc9a76a3bcd96466bccb49f44 Mon Sep 17 00:00:00 2001 From: OPPEN321 Date: Fri, 7 Nov 2025 01:45:45 +0800 Subject: [PATCH] Update build.sh --- build.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 18e3e36..c07f89c 100644 --- a/build.sh +++ b/build.sh @@ -604,9 +604,7 @@ compile_source_code() { echo -e " ${BOLD}${YELLOW_COLOR}📥 下载预编译工具链...${RESET}" # 确定工具链URL - PLATFORM_ID="" - [ -f /etc/os-release ] && source /etc/os-release - if [ "$PLATFORM_ID" = "platform:el9" ]; then + if [ "$(whoami)" = "zhao" ]; then TOOLCHAIN_URL="http://127.0.0.1:8080" else TOOLCHAIN_URL="https://$github/QuickWrt/openwrt_caches/releases/download/openwrt-24.10"