From 5e9b56399e3d8c27beac7fe960fc09ff8aa94df0 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Tue, 22 Jul 2025 18:48:23 +0800 Subject: [PATCH] Remove extra empty line when `chsrc_run_as_x_file()` --- src/framework/core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/framework/core.c b/src/framework/core.c index cee916b..64a0e7e 100644 --- a/src/framework/core.c +++ b/src/framework/core.c @@ -9,7 +9,7 @@ * | Yangmoooo * | * Created On : <2023-08-29> - * Last Modified : <2025-07-21> + * Last Modified : <2025-07-22> * * chsrc framework * ------------------------------------------------------------*/ @@ -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); - println (faint(script_content)); + print (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); - println (faint(script_content)); + print (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); - println (faint(script_content)); + print (faint(script_content)); char *cmd = xy_2strjoin ("pwsh ", tmpfile); chsrc_run (cmd, RunOpt_Dont_Abort_On_Failure); remove (tmpfile);