From 26e3c60ae860f92ac4c318a7b9d8a6ac16ff3564 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Mon, 28 Jul 2025 18:47:18 +0800 Subject: [PATCH] println script content --- src/chsrc-main.c | 4 ++-- src/framework/core.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/chsrc-main.c b/src/chsrc-main.c index 4d741b2..31cebe1 100644 --- a/src/chsrc-main.c +++ b/src/chsrc-main.c @@ -31,12 +31,12 @@ * | Rui Yang * | * Created On : <2023-08-28> - * Last Modified : <2025-07-26> + * Last Modified : <2025-07-28> * * chsrc: Change Source —— 全平台通用命令行换源工具 * ------------------------------------------------------------*/ -#define Chsrc_Version "0.2.2" +#define Chsrc_Version "0.2.2.1-dev1" #define Chsrc_Release_Date "2025/07/26" #define Chsrc_Maintain_URL "https://github.com/RubyMetric/chsrc" #define Chsrc_Maintain_URL2 "https://gitee.com/RubyMetric/chsrc" diff --git a/src/framework/core.c b/src/framework/core.c index 8439c35..afa53aa 100644 --- a/src/framework/core.c +++ b/src/framework/core.c @@ -1402,7 +1402,7 @@ chsrc_run_as_bash_file (const char *script_content) // chmod (tmpfile, 0700); char *msg = CHINESE ? "即将执行 Bash 脚本内容:" : "The Bash script content will be executed:"; chsrc_note2 (msg); - print (faint(script_content)); + println (faint(script_content)); char *cmd = xy_2strjoin ("bash ", tmpfile); chsrc_run (cmd, RunOpt_Dont_Abort_On_Failure); remove (tmpfile); @@ -1422,7 +1422,7 @@ chsrc_run_as_sh_file (const char *script_content) // chmod (tmpfile, 0700); char *msg = CHINESE ? "即将执行 sh 脚本内容:" : "The sh script content will be executed:"; chsrc_note2 (msg); - print (faint(script_content)); + println (faint(script_content)); char *cmd = xy_2strjoin ("sh ", tmpfile); chsrc_run (cmd, RunOpt_Dont_Abort_On_Failure); remove (tmpfile); @@ -1441,7 +1441,7 @@ chsrc_run_as_pwsh_file (const char *script_content) fclose (f); char *msg = CHINESE ? "即将执行 PowerShell 脚本内容:" : "The PowerShell script content will be executed:"; chsrc_note2 (msg); - print (faint(script_content)); + println (faint(script_content)); char *cmd = xy_2strjoin ("pwsh ", tmpfile); chsrc_run (cmd, RunOpt_Dont_Abort_On_Failure); remove (tmpfile);