all.sh: move crypto submodule check to pre_check_git

This commit is contained in:
Andrzej Kurek 2019-02-05 05:34:21 -05:00
parent c690523d2b
commit e9c3b8130a

View file

@ -112,11 +112,6 @@ pre_check_environment () {
fi fi
} }
if ! [ -f crypto/Makefile ]; then
echo "Please initialize the crypto submodule" >&2
exit 1
fi
pre_initialize_variables () { pre_initialize_variables () {
CONFIG_H='include/mbedtls/config.h' CONFIG_H='include/mbedtls/config.h'
CONFIG_BAK="$CONFIG_H.bak" CONFIG_BAK="$CONFIG_H.bak"
@ -401,6 +396,10 @@ pre_check_git () {
exit 1 exit 1
fi fi
fi fi
if ! [ -f crypto/Makefile ]; then
echo "Please initialize the crypto submodule" >&2
exit 1
fi
} }
pre_setup_keep_going () { pre_setup_keep_going () {