Update variable

This commit is contained in:
Aoran Zeng 2024-09-29 11:58:38 +08:00
parent 2a52c898d6
commit 35c1a5be18
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
4 changed files with 7 additions and 7 deletions

View File

@ -26,7 +26,7 @@ pl_nodejs_bun_getsrc (char *option)
void
pl_nodejs_bun_setsrc (char *option)
{
char *chsrc_type = xy_streql (option, SetsrcType_Reset) ? SetsrcType_Reset : SetsrcType_Manual;
char *setsrc_type = xy_streql (option, SetsrcType_Reset) ? SetsrcType_Reset : SetsrcType_Manual;
chsrc_yield_source (pl_nodejs);
char *file = xy_strjoin(3, "[install]\n"
@ -35,7 +35,7 @@ pl_nodejs_bun_setsrc (char *option)
chsrc_note2 (xy_strjoin (3, "请您手动写入以下内容到 ", xy_uniform_path ("~/.bun/bunfig.toml"), " 文件中:"));
puts (file);
chsrc_conclude (&source, chsrc_type);
chsrc_conclude (&source, setsrc_type);
}

View File

@ -45,7 +45,7 @@ pl_python_setsrc (char *option)
chsrc_note2 (msg);
}
char *chsrc_type = xy_streql (option, SetsrcType_Reset) ? SetsrcType_Reset : SetsrcType_Auto;
char *setsrc_type = xy_streql (option, SetsrcType_Reset) ? SetsrcType_Reset : SetsrcType_Auto;
bool pdm_exist = false,
poetry_exist = false;
@ -71,7 +71,7 @@ pl_python_setsrc (char *option)
pl_python_pdm_setsrc (option);
}
chsrc_conclude (&source, chsrc_type);
chsrc_conclude (&source, setsrc_type);
}
void

View File

@ -60,7 +60,7 @@ pl_ruby_remove_gem_source (const char *source)
void
pl_ruby_setsrc (char *option)
{
char *chsrc_type = xy_streql (option, SetsrcType_Reset) ? SetsrcType_Reset : SetsrcType_Auto;
char *setsrc_type = xy_streql (option, SetsrcType_Reset) ? SetsrcType_Reset : SetsrcType_Auto;
chsrc_ensure_program ("gem");
@ -85,7 +85,7 @@ pl_ruby_setsrc (char *option)
cmd = xy_strjoin (4, "bundle config", where, "'mirror.https://rubygems.org' ", source.url);
chsrc_run (cmd, RunOpt_No_Last_New_Line);
chsrc_conclude (&source, chsrc_type);
chsrc_conclude (&source, setsrc_type);
}
void

View File

@ -81,7 +81,7 @@ void
/* 具体的换源步骤,如调用第三方命令... */
// 最后总结输出
chsrc_conclude (&source, chsrc_type);
chsrc_conclude (&source, setsrc_type);
}