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

@@ -98,7 +98,7 @@ wr_dockerhub_setsrc (char *option)
"\")' ",
WARE_DockerHub_SourceConfig);
char *ret = xy_run(cmd, 0);
if (ret && !xy_streql(ret, "null\n"))
if (ret && !xy_streql(ret, "null"))
{
chsrc_note2 ("已存在源,无需重复添加");
}