]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg/cd: Do not print the destination dir when CD exits
authorRuiyu Ni <ruiyu.ni@intel.com>
Thu, 26 Jan 2017 04:32:33 +0000 (12:32 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Fri, 3 Feb 2017 05:23:52 +0000 (13:23 +0800)
Before the "cd fs0:dir" fix, CD only prints destination directory
when the destination contains ":".
However, the "cd fs0:dir" fix changed CD to always print destination
directory.

This patch changes CD to never print destination directory.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Cc: Chris J Phillips <chrisp@hpe.com>
Reviewed-by: Tapan Shah <tapandshah@hpe.com>
ShellPkg/Library/UefiShellLevel2CommandsLib/Cd.c

index d459a7a67e84787b5f11ae76ae51806e684ebfe0..dd4a740354a331839f8868082c62781aaa3f936d 100644 (file)
@@ -3,7 +3,7 @@
 \r
   (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -321,8 +321,6 @@ ShellCommandRunCd (
             if (EFI_ERROR (Status)) {\r
               ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN(STR_GEN_DIR_NF), gShellLevel2HiiHandle, L"cd", Param1Copy);\r
               ShellStatus = SHELL_NOT_FOUND;\r
-            } else {\r
-              ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN(STR_CD_PRINT), gShellLevel2HiiHandle, ShellGetCurrentDir(Drive));\r
             }\r
           }\r
         }\r