mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
Use repo detection functions at start of all.sh
Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
@@ -132,7 +132,7 @@ in_psa_crypto_repo () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pre_check_environment () {
|
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
|
echo "Must be run from Mbed TLS root" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user