!415 fix(shell):cp命令执行时 通配出多个源文件时错误提示不正确

Merge pull request !415 from 冷钦街/cp_hit
This commit is contained in:
openharmony_ci 2021-11-24 05:55:43 +00:00 committed by Gitee
commit a1e97964c6
1 changed files with 1 additions and 1 deletions

View File

@ -857,7 +857,7 @@ INT32 OsShellCmdCp(INT32 argc, const CHAR **argv)
(VOID)OsWildcardExtractDirectory(srcCopy, &count, CP_COUNT);
free(srcCopy);
if (count > 1) {
PRINTK("cp error : %s is not a directory.\n", drcFullPath);
PRINTK("cp error : Can not copy two or more files.\n");
goto errout_with_path;
}
}