diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-08-08 18:21:32 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-08-10 10:17:17 +0800 |
commit | 5aeafb3a254e7cd9e1fb69a0d391388a51c6e210 (patch) | |
tree | 0a9eee3f34085361dd43e2245d76a057d70592c3 /ShellPkg/Library/UefiShellLevel2CommandsLib | |
parent | 47ec935660cd38659efcb414ab2cb819c0cb466e (diff) | |
download | edk2-platforms-5aeafb3a254e7cd9e1fb69a0d391388a51c6e210.tar.xz |
ShellPkg/ls: Display the correct directory path
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Tapan Shah <tapandshah@hpe.com>
Diffstat (limited to 'ShellPkg/Library/UefiShellLevel2CommandsLib')
-rw-r--r-- | ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c b/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c index 6d3cc95f4b..0b8019516f 100644 --- a/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c +++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c @@ -442,6 +442,7 @@ PrintLsOutput( }
if (!Sfo && !HeaderPrinted) {
+ PathRemoveLastItem (CorrectedPath);
PrintNonSfoHeader(CorrectedPath);
}
PrintFileInformation(Sfo, Node, &FileCount, &FileSize, &DirCount);
|