From 5e9ffa90960f77bb61ff8f425c6814a4c5a11ff1 Mon Sep 17 00:00:00 2001 From: Thomas Daubney Date: Mon, 29 Jul 2024 12:09:57 +0100 Subject: [PATCH] Redirect error message to stderr Signed-off-by: Thomas Daubney --- scripts/lcov.sh | 2 +- tests/scripts/all.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/lcov.sh b/scripts/lcov.sh index 15b13c10ee..2885537e14 100755 --- a/scripts/lcov.sh +++ b/scripts/lcov.sh @@ -35,7 +35,7 @@ PROJECT_NAME_FILE='./scripts/project_name.txt' in_mbedtls_repo () { if [ ! -f $PROJECT_NAME_FILE ]; then - echo "$PROJECT_NAME_FILE does not exist... Exiting..." + echo "$PROJECT_NAME_FILE does not exist... Exiting..." >&2 exit 1 fi grep -Fxq "Mbed TLS" "$PROJECT_NAME_FILE" diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index fdd7b946e2..c17d627b54 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -120,7 +120,7 @@ PROJECT_NAME_FILE='./scripts/project_name.txt' in_mbedtls_repo () { if [ ! -f $PROJECT_NAME_FILE ]; then - echo "$PROJECT_NAME_FILE does not exist... Exiting..." + echo "$PROJECT_NAME_FILE does not exist... Exiting..." >&2 exit 1 fi grep -Fxq "Mbed TLS" "$PROJECT_NAME_FILE" @@ -128,7 +128,7 @@ in_mbedtls_repo () { in_tf_psa_crypto_repo () { if [ ! -f $PROJECT_NAME_FILE ]; then - echo "$PROJECT_NAME_FILE does not exist... Exiting..." + echo "$PROJECT_NAME_FILE does not exist... Exiting..." >&2 exit 1 fi grep -Fxq "TF-PSA-Crypto" "$PROJECT_NAME_FILE"