Use repo detection functions at start of all.sh

Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
David Horstmann 2023-08-29 10:15:05 +01:00
parent d02b5f8f56
commit 58cf7c6c38

View file

@ -132,7 +132,7 @@ in_psa_crypto_repo () {
}
pre_check_environment () {
if [ \( -d library -o -d core \) -a -d include -a -d tests ]; then :; else
if in_mbedtls_repo || in_psa_crypto_repo; then :; else
echo "Must be run from Mbed TLS root" >&2
exit 1
fi