diff options
author | Leif Lindholm <leif.lindholm@linaro.org> | 2018-02-08 13:24:55 +0000 |
---|---|---|
committer | Leif Lindholm <leif.lindholm@linaro.org> | 2018-02-08 13:24:55 +0000 |
commit | a7f81e2144333033d18f28f0bedd373158d75ce9 (patch) | |
tree | 58ad346d16e0fa87b9f8999a1a21edf4ec41b27c | |
parent | cf80aa894ccb6c2e30d1a7993ee60e9a1f7b5650 (diff) |
common-functions: handle existing openssl directory
Seems upstream edk2 helpfully added an openssl directory to
CryptoPkg/Library/OpensslLib, causing my logic of
mv openssl-<version> openssl
after extracting downloaded tarball to do the completely
wrong thing. Fix that.
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
-rw-r--r-- | common-functions | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common-functions b/common-functions index ae4c49a..f504297 100644 --- a/common-functions +++ b/common-functions @@ -171,7 +171,11 @@ function clone_process_openssl rm -rf openssl fi tar xzf "$OPENSSL_TAR" - mv "$OPENSSL_VER" openssl + if [ ! -d openssl ]; then + mkdir openssl + fi + mv "$OPENSSL_VER"/* openssl + rm -r "$OPENSSL_VER"/ # perl process_files.pl # not needed and not currently working return $? } |