mirror of https://github.com/acidanthera/audk.git
Add CTRL+C support for ‘attrib’ command.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah <tapandshah@hp.com> Reviewed-By: Jaben Carsey <jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15991 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
078308324f
commit
288638f0aa
|
@ -1,6 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Main file for attrib shell level 2 function.
|
Main file for attrib shell level 2 function.
|
||||||
|
|
||||||
|
Copyright (c) 2014, Hewlett-Packard Development Company, L.P.<BR>
|
||||||
Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
|
@ -152,6 +153,11 @@ ShellCommandRunAttrib (
|
||||||
FileNode->Info->Attribute&EFI_FILE_READ_ONLY? L'R':L' ',
|
FileNode->Info->Attribute&EFI_FILE_READ_ONLY? L'R':L' ',
|
||||||
FileNode->FileName
|
FileNode->FileName
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (ShellGetExecutionBreakFlag()) {
|
||||||
|
ShellStatus = SHELL_ABORTED;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Status = ShellCloseFileMetaArg(&ListOfFiles);
|
Status = ShellCloseFileMetaArg(&ListOfFiles);
|
||||||
ListOfFiles = NULL;
|
ListOfFiles = NULL;
|
||||||
|
|
Loading…
Reference in New Issue