diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-04-19 17:51:45 +0800 |
---|---|---|
committer | Guo Mang <mang.guo@intel.com> | 2017-07-12 11:24:29 +0800 |
commit | 367296dbf83630f1421bed1e1af25de1939682f1 (patch) | |
tree | f1c6ff35a9ef8db6610ba345ccdb99f1eb5794d5 /BaseTools/Source/Python | |
parent | 2a3efa5c4e02ad7e3a2d81191a1bd95a2ad11fd5 (diff) | |
download | edk2-platforms-367296dbf83630f1421bed1e1af25de1939682f1.tar.xz |
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 <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/Python')
-rw-r--r-- | BaseTools/Source/Python/Pkcs7Sign/Pkcs7Sign.py | 2 |
1 files changed, 2 insertions, 0 deletions
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
|