mirror of
https://github.com/RubyMetric/chsrc
synced 2025-12-23 10:59:29 +08:00
Delete new line when iter
This commit is contained in:
@@ -13,7 +13,7 @@ char *
|
||||
pl_python_find_rye_config ()
|
||||
{
|
||||
char *buf = xy_run ("rye config --show-path", 0);
|
||||
char *rye_config = xy_normalize_path (xy_str_strip (buf));
|
||||
char *rye_config = xy_normalize_path (buf);
|
||||
|
||||
return rye_config;
|
||||
}
|
||||
|
||||
@@ -56,8 +56,7 @@ pl_ruby_remove_gem_source (const char *source)
|
||||
char *cmd = NULL;
|
||||
if (is_url (source))
|
||||
{
|
||||
cmd = xy_str_delete_suffix (source, "\n");
|
||||
cmd = xy_2strjoin ("gem sources -r ", cmd);
|
||||
cmd = xy_2strjoin ("gem sources -r ", source);
|
||||
chsrc_run (cmd, RunOpt_Default);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user