Update build.sh
This commit is contained in:
4
build.sh
4
build.sh
@@ -604,9 +604,7 @@ compile_source_code() {
|
|||||||
echo -e " ${BOLD}${YELLOW_COLOR}📥 下载预编译工具链...${RESET}"
|
echo -e " ${BOLD}${YELLOW_COLOR}📥 下载预编译工具链...${RESET}"
|
||||||
|
|
||||||
# 确定工具链URL
|
# 确定工具链URL
|
||||||
PLATFORM_ID=""
|
if [ "$(whoami)" = "zhao" ]; then
|
||||||
[ -f /etc/os-release ] && source /etc/os-release
|
|
||||||
if [ "$PLATFORM_ID" = "platform:el9" ]; then
|
|
||||||
TOOLCHAIN_URL="http://127.0.0.1:8080"
|
TOOLCHAIN_URL="http://127.0.0.1:8080"
|
||||||
else
|
else
|
||||||
TOOLCHAIN_URL="https://$github/QuickWrt/openwrt_caches/releases/download/openwrt-24.10"
|
TOOLCHAIN_URL="https://$github/QuickWrt/openwrt_caches/releases/download/openwrt-24.10"
|
||||||
|
|||||||
Reference in New Issue
Block a user