From 367296dbf83630f1421bed1e1af25de1939682f1 Mon Sep 17 00:00:00 2001 From: Yonghong Zhu Date: Wed, 19 Apr 2017 17:51:45 +0800 Subject: BaseTools: Pkcs7Sign Tool to support OPENSSL_PATH has space Update Pkcs7Sign Tool to support the case that OPENSSL_PATH has space characters. Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu Reviewed-by: Liming Gao --- BaseTools/Source/Python/Pkcs7Sign/Pkcs7Sign.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'BaseTools/Source/Python') diff --git a/BaseTools/Source/Python/Pkcs7Sign/Pkcs7Sign.py b/BaseTools/Source/Python/Pkcs7Sign/Pkcs7Sign.py index ef79f80edd..de8575676c 100644 --- a/BaseTools/Source/Python/Pkcs7Sign/Pkcs7Sign.py +++ b/BaseTools/Source/Python/Pkcs7Sign/Pkcs7Sign.py @@ -102,6 +102,8 @@ if __name__ == '__main__': try: OpenSslPath = os.environ['OPENSSL_PATH'] OpenSslCommand = os.path.join(OpenSslPath, OpenSslCommand) + if ' ' in OpenSslCommand: + OpenSslCommand = '"' + OpenSslCommand + '"' except: pass -- cgit v1.2.3