From b7ce7b162013ac860ee6bda11d081ab4fb77da71 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Mon, 8 Jul 2024 18:29:35 +0800 Subject: [PATCH] Fix: Debian security command string join not completely [GitHub link #43] --- src/chsrc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chsrc.c b/src/chsrc.c index c62705e..2f34ebb 100644 --- a/src/chsrc.c +++ b/src/chsrc.c @@ -9,7 +9,7 @@ * | Shengwei Chen <414685209@qq.com> * | * Created on : <2023-08-28> - * Last modified : <2024-07-03> + * Last modified : <2024-07-08> * * chsrc: Change Source —— 全平台通用命令行换源工具 * ------------------------------------------------------------*/ @@ -1064,11 +1064,11 @@ os_debian_setsrc_for_deb822 (char *option) chsrc_backup (ETC_APT_DEB822_Debian_Sources); - char *cmd = xy_strjoin (3, "sed -E -i \'s@https?://.*/debian/?@", source.url, "@g\' " ETC_APT_DEB822_Debian_Sources); + char *cmd = xy_strjoin (3, "sed -E -i 's@https?://.*/debian/?@", source.url, "@g' " ETC_APT_DEB822_Debian_Sources); chsrc_run (cmd, RunOpt_Default); // debian-security 源和其他源不一样 - cmd = xy_strjoin (3, "sed -E -i \'s@https?://.*/debian-security/?@", source.url, "-security", "@g\' " ETC_APT_DEB822_Debian_Sources); + cmd = xy_strjoin (3, "sed -E -i 's@https?://.*/debian-security/?@", source.url, "-security@g' " ETC_APT_DEB822_Debian_Sources); chsrc_run (cmd, RunOpt_Default); chsrc_run ("apt update", RunOpt_No_Last_New_Line);