mirror of
https://github.com/RubyMetric/chsrc
synced 2025-12-24 19:39:54 +08:00
Delete new line when iter
This commit is contained in:
@@ -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