diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-04-19 17:51:45 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-04-27 21:19:29 +0800 |
commit | b10515378d0a87d36207e44ca1ee02d02918f47c (patch) | |
tree | e3e4d1e4bcd2bfa3f351a2868d090e720b89f669 /BaseTools/Source/Python | |
parent | 3337eefb49d9053cfd75028ab74dad0cd7acd045 (diff) | |
download | edk2-b10515378d0a87d36207e44ca1ee02d02918f47c.tar.gz edk2-b10515378d0a87d36207e44ca1ee02d02918f47c.tar.bz2 edk2-b10515378d0a87d36207e44ca1ee02d02918f47c.zip |
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
|