mirror of
https://github.com/RubyMetric/chsrc
synced 2025-12-28 13:49:49 +08:00
Rename inner function
This commit is contained in:
@@ -45,9 +45,7 @@ wr_homebrew_getsrc (char *option)
|
||||
void
|
||||
wr_homebrew_setsrc (char *option)
|
||||
{
|
||||
SourceInfo source;
|
||||
chsrc_yield_source (wr_homebrew);
|
||||
chsrc_confirm_source (&source);
|
||||
chsrc_yield_source_and_confirm (wr_homebrew);
|
||||
|
||||
char *splitter = "\n\n# Generated by chsrc " Chsrc_Version;
|
||||
char *api_domain = xy_strjoin (3, "export HOMEBREW_API_DOMAIN=\"", xy_2strjoin (source.url, "homebrew-bottles/api"), "\"");
|
||||
@@ -74,7 +72,7 @@ wr_homebrew_setsrc (char *option)
|
||||
chsrc_append_to_file (core_git_remote, bashrc);
|
||||
}
|
||||
|
||||
chsrc_say_lastly (&source, ChsrcTypeAuto);
|
||||
chsrc_conclude (&source, ChsrcTypeAuto);
|
||||
chsrc_note2 ("请您重启终端使Homebrew环境变量生效");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user