mirror of
https://github.com/RubyMetric/chsrc
synced 2025-12-23 10:59:29 +08:00
Remove xy_run() last parameter
This commit is contained in:
@@ -37,7 +37,7 @@ pl_java_check_cmd (bool *maven_exist, bool *gradle_exist)
|
||||
char *
|
||||
pl_java_find_maven_config ()
|
||||
{
|
||||
char *buf = xy_run ("mvn -v", 2, NULL);
|
||||
char *buf = xy_run ("mvn -v", 2);
|
||||
char *maven_home = xy_str_delete_prefix (buf, "Maven home: ");
|
||||
maven_home = xy_str_strip (maven_home);
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
static double
|
||||
pl_nodejs_yarn_get_yarn_version ()
|
||||
{
|
||||
char *ver = xy_run ("yarn --version", 0, NULL);
|
||||
char *ver = xy_run ("yarn --version", 0);
|
||||
double version = atof (ver);
|
||||
return version;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
char *
|
||||
pl_python_find_rye_config ()
|
||||
{
|
||||
char *buf = xy_run ("rye config --show-path", 0, NULL);
|
||||
char *buf = xy_run ("rye config --show-path", 0);
|
||||
char *rye_config = xy_normalize_path (xy_str_strip (buf));
|
||||
|
||||
return rye_config;
|
||||
|
||||
@@ -74,7 +74,7 @@ pl_ruby_setsrc (char *option)
|
||||
|
||||
char *cmd = NULL;
|
||||
|
||||
xy_run ("gem sources -l", 0, pl_ruby_remove_gem_source);
|
||||
xy_run_iter ("gem sources -l", 0, pl_ruby_remove_gem_source);
|
||||
|
||||
cmd = xy_2strjoin ("gem source -a ", source.url);
|
||||
chsrc_run (cmd, RunOpt_Default);
|
||||
|
||||
Reference in New Issue
Block a user