File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,8 +31,9 @@ OPENSSL_INSTALL_DIR=$PWD/openssl-install
3131install_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
Original file line number Diff line number Diff line change @@ -32,8 +32,9 @@ WOLFSSL_INSTALL_DIR=$PWD/wolfssl-install
3232install_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
You can’t perform that action at this time.
0 commit comments