Skip to content

Commit 8a4dbdc

Browse files
author
Andras Fekete
committed
Don't auto-delete dependent repos
Just in case there are local changes, we should just warn about incorrect versions being tested.
1 parent a42521e commit 8a4dbdc

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

scripts/utils-openssl.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ OPENSSL_INSTALL_DIR=$PWD/openssl-install
3131
install_openssl() {
3232
if [ -d ${OPENSSL_SOURCE_DIR} ]; then
3333
if [ "$(cd ${OPENSSL_SOURCE_DIR} && git describe --tags)" != "${OPENSSL_TAG}" ]; then # force a rebuild
34-
rm -rf ${OPENSSL_SOURCE_DIR}
35-
rm -rf ${OPENSSL_INSTALL_DIR}
34+
printf "Version inconsistency. Please fix ${OPENSSL_SOURCE_DIR}\n"
35+
do_cleanup
36+
exit 1
3637
fi
3738
fi
3839

scripts/utils-wolfssl.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ WOLFSSL_INSTALL_DIR=$PWD/wolfssl-install
3232
install_wolfssl() {
3333
if [ -d ${WOLFSSL_SOURCE_DIR} ]; then
3434
if [ "$(cd ${WOLFSSL_SOURCE_DIR} && git describe --tags)" != "${WOLFSSL_TAG}" ]; then # force a rebuild
35-
rm -rf ${WOLFSSL_SOURCE_DIR}
36-
rm -rf ${WOLFSSL_INSTALL_DIR}
35+
printf "Version inconsistency. Please fix ${WOLFSSL_SOURCE_DIR}\n"
36+
do_cleanup
37+
exit 1
3738
fi
3839
fi
3940

0 commit comments

Comments
 (0)