!64 【轻量级 PR】:update apps/shell/builtin/cd.c.

Merge pull request !64 from 冷钦街/N/A
This commit is contained in:
openharmony_ci 2021-03-25 11:22:55 +08:00 committed by Gitee
commit 7d8d337b52
1 changed files with 1 additions and 4 deletions

View File

@ -53,10 +53,7 @@ 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;
}
ret = OsShellSetWorkingDirtectory(tgtDir, strlen(tgtDir) + 1); /* 1: the length of '\0' */
}
return ret;