Delete new line when iter

This commit is contained in:
Aoran Zeng
2024-12-14 20:43:19 +08:00
parent 66ad62d209
commit 603525790e
8 changed files with 24 additions and 30 deletions

View File

@@ -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;
}

View File

@@ -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);
}
}