update apps/shell/builtin/cd.c.

This commit is contained in:
冷钦街 2021-02-04 20:27:22 +08:00 committed by Gitee
parent 71144b4a1e
commit cfec7a63a5
1 changed files with 1 additions and 4 deletions

View File

@ -54,9 +54,6 @@ int Chdir(const char *tgtDir)
ret = chdir(tgtDir);
if (ret == 0) {
ret = OsShellSetWorkingDirtectory(tgtDir, strlen(tgtDir) + 1); /* 1: the length of '\0' */
if (ret != SH_NOK) {
return ret;
}
}
return ret;