Skip to content

Commit 26e3c60

Browse files
committed
println script content
1 parent 5322599 commit 26e3c60

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/chsrc-main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
* | Rui Yang <[email protected]>
3232
* |
3333
* Created On : <2023-08-28>
34-
* Last Modified : <2025-07-26>
34+
* Last Modified : <2025-07-28>
3535
*
3636
* chsrc: Change Source —— 全平台通用命令行换源工具
3737
* ------------------------------------------------------------*/
3838

39-
#define Chsrc_Version "0.2.2"
39+
#define Chsrc_Version "0.2.2.1-dev1"
4040
#define Chsrc_Release_Date "2025/07/26"
4141
#define Chsrc_Maintain_URL "https://github.com/RubyMetric/chsrc"
4242
#define Chsrc_Maintain_URL2 "https://gitee.com/RubyMetric/chsrc"

src/framework/core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,7 @@ chsrc_run_as_bash_file (const char *script_content)
14021402
// chmod (tmpfile, 0700);
14031403
char *msg = CHINESE ? "即将执行 Bash 脚本内容:" : "The Bash script content will be executed:";
14041404
chsrc_note2 (msg);
1405-
print (faint(script_content));
1405+
println (faint(script_content));
14061406
char *cmd = xy_2strjoin ("bash ", tmpfile);
14071407
chsrc_run (cmd, RunOpt_Dont_Abort_On_Failure);
14081408
remove (tmpfile);
@@ -1422,7 +1422,7 @@ chsrc_run_as_sh_file (const char *script_content)
14221422
// chmod (tmpfile, 0700);
14231423
char *msg = CHINESE ? "即将执行 sh 脚本内容:" : "The sh script content will be executed:";
14241424
chsrc_note2 (msg);
1425-
print (faint(script_content));
1425+
println (faint(script_content));
14261426
char *cmd = xy_2strjoin ("sh ", tmpfile);
14271427
chsrc_run (cmd, RunOpt_Dont_Abort_On_Failure);
14281428
remove (tmpfile);
@@ -1441,7 +1441,7 @@ chsrc_run_as_pwsh_file (const char *script_content)
14411441
fclose (f);
14421442
char *msg = CHINESE ? "即将执行 PowerShell 脚本内容:" : "The PowerShell script content will be executed:";
14431443
chsrc_note2 (msg);
1444-
print (faint(script_content));
1444+
println (faint(script_content));
14451445
char *cmd = xy_2strjoin ("pwsh ", tmpfile);
14461446
chsrc_run (cmd, RunOpt_Dont_Abort_On_Failure);
14471447
remove (tmpfile);

0 commit comments

Comments
 (0)