mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-08 03:04:03 +08:00
Fix: always dry run
This commit is contained in:
parent
6097792432
commit
d7c9f453b9
@ -620,9 +620,14 @@ main (int argc, char const *argv[])
|
|||||||
|
|
||||||
bool matched = false;
|
bool matched = false;
|
||||||
|
|
||||||
char *dry_msg = CliOpt_InEnglish ? "** Enable [Dry Run] mode. Simulate the source changing process (skipping speed measurement). Commands only print but don't run **\n"
|
if (CliOpt_DryRun)
|
||||||
|
{
|
||||||
|
char *dry_msg = CliOpt_InEnglish ? "** Enable [Dry Run] mode. " \
|
||||||
|
"Simulate the source changing process (skipping speed measurement). " \
|
||||||
|
"Commands only print but don't run **\n"
|
||||||
: "**开启Dry Run模式,模拟换源过程(跳过测速),命令仅打印并不运行**\n";
|
: "**开启Dry Run模式,模拟换源过程(跳过测速),命令仅打印并不运行**\n";
|
||||||
chsrc_log (bdyellow(dry_msg));
|
chsrc_log (bdyellow(dry_msg));
|
||||||
|
}
|
||||||
|
|
||||||
/* chsrc help */
|
/* chsrc help */
|
||||||
if (xy_streql (command, "h")
|
if (xy_streql (command, "h")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user