mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-29 03:32:39 +00:00
Add check for existence of project name file
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
parent
bbb41f7afb
commit
6a864dc5fe
@ -34,6 +34,10 @@ set -eu
|
|||||||
PROJECT_NAME_FILE='./scripts/project_name.txt'
|
PROJECT_NAME_FILE='./scripts/project_name.txt'
|
||||||
|
|
||||||
in_mbedtls_repo () {
|
in_mbedtls_repo () {
|
||||||
|
if [ ! -f $PROJECT_NAME_FILE ]; then
|
||||||
|
echo "$PROJECT_NAME_FILE does not exist... Exiting..."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
grep -Fxq "Mbed TLS" "$PROJECT_NAME_FILE"
|
grep -Fxq "Mbed TLS" "$PROJECT_NAME_FILE"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,10 +119,18 @@ shopt -s extglob
|
|||||||
PROJECT_NAME_FILE='./scripts/project_name.txt'
|
PROJECT_NAME_FILE='./scripts/project_name.txt'
|
||||||
|
|
||||||
in_mbedtls_repo () {
|
in_mbedtls_repo () {
|
||||||
|
if [ ! -f $PROJECT_NAME_FILE ]; then
|
||||||
|
echo "$PROJECT_NAME_FILE does not exist... Exiting..."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
grep -Fxq "Mbed TLS" "$PROJECT_NAME_FILE"
|
grep -Fxq "Mbed TLS" "$PROJECT_NAME_FILE"
|
||||||
}
|
}
|
||||||
|
|
||||||
in_tf_psa_crypto_repo () {
|
in_tf_psa_crypto_repo () {
|
||||||
|
if [ ! -f $PROJECT_NAME_FILE ]; then
|
||||||
|
echo "$PROJECT_NAME_FILE does not exist... Exiting..."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
grep -Fxq "TF-PSA-Crypto" "$PROJECT_NAME_FILE"
|
grep -Fxq "TF-PSA-Crypto" "$PROJECT_NAME_FILE"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user