diff --git a/src/recipe/os/OpenWrt.c b/src/recipe/os/OpenWrt.c index 077b1c6..9aa1204 100644 --- a/src/recipe/os/OpenWrt.c +++ b/src/recipe/os/OpenWrt.c @@ -2,7 +2,8 @@ * SPDX-License-Identifier: GPL-3.0-or-later * ------------------------------------------------------------- * File Authors : Aoran Zeng - * Contributors : Yangmoooo + * Contributors : Yangmoooo + * | happy game * | * Created On : <2024-08-08> * Last Modified : <2024-12-14> @@ -50,8 +51,9 @@ os_openwrt_setsrc (char *option) chsrc_backup (OS_OpenWRT_SourceConfig); - char *cmd = xy_strjoin (3, "sed -E -i 's@https?://.*/releases@", source.url, "@g' " OS_OpenWRT_SourceConfig); + char *cmd = xy_strjoin (3, "sed -E -i 's@https?://.*/releases@", source.url, "/releases@g' " OS_OpenWRT_SourceConfig); + chsrc_run (cmd, RunOpt_No_Last_New_Line); chsrc_run ("opkg update", RunOpt_No_Last_New_Line); ProgMode_ChgType = ProgMode_CMD_Reset ? ChgType_Reset : ChgType_Auto;