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

close #I4JETR
Signed-off-by: lengqinjie <15390014138@163.com>
This commit is contained in:
lengqinjie
2021-11-23 14:09:12 +08:00
parent b7de7f6085
commit 8675abcec9

View File

@@ -856,7 +856,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;
}
}