all.sh: move crypto submodule check to pre_check_git
@@ -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 () {
