From e9c3b8130aebed215945954fc202f88fa608c4ef Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Tue, 5 Feb 2019 05:34:21 -0500 Subject: [PATCH] all.sh: move crypto submodule check to pre_check_git --- tests/scripts/all.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index eebcfeb2a..4ef950a2f 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -112,11 +112,6 @@ pre_check_environment () { fi } -if ! [ -f crypto/Makefile ]; then - echo "Please initialize the crypto submodule" >&2 - exit 1 -fi - pre_initialize_variables () { CONFIG_H='include/mbedtls/config.h' CONFIG_BAK="$CONFIG_H.bak" @@ -401,6 +396,10 @@ pre_check_git () { exit 1 fi fi + if ! [ -f crypto/Makefile ]; then + echo "Please initialize the crypto submodule" >&2 + exit 1 + fi } pre_setup_keep_going () {