summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Lindholm <leif.lindholm@linaro.org>2018-02-13 16:55:51 +0000
committerLeif Lindholm <leif.lindholm@linaro.org>2018-02-13 16:55:51 +0000
commit2598765a875f2f0d915474a624d26e9295f9b963 (patch)
tree3553ed83b1c506ddd52271f3bd5d67653cb7b336
parentd985e8fdeb82b2e14a090a9e1d9fffbf7a7335f3 (diff)
common-functions: return error if openssl archieve failed to extract
Also prevents attempting to recursively remove / on failure... Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
-rw-r--r--common-functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/common-functions b/common-functions
index bbdf14e..810532e 100644
--- a/common-functions
+++ b/common-functions
@@ -172,6 +172,10 @@ function clone_process_openssl
rm -rf openssl
fi
tar xzf "$OPENSSL_TAR"
+ if [ $? -ne 0 -o ! -d "OPENSSL_VER" ]; then
+ echo "OpenSSL import failed!"
+ return 1
+ fi
if [ ! -d openssl ]; then
mkdir openssl
fi