From c509c489d7ae0f56562d0afb983b8c1400df50f9 Mon Sep 17 00:00:00 2001 From: Lukasz Dorau Date: Fri, 6 Sep 2024 12:15:04 +0200 Subject: [PATCH] Fix comparing strings in bash Signed-off-by: Lukasz Dorau --- test/test_examples.sh | 2 +- test/test_valgrind.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_examples.sh b/test/test_examples.sh index 8941f4e8a2..1d7e93ee13 100755 --- a/test/test_examples.sh +++ b/test/test_examples.sh @@ -17,7 +17,7 @@ function print_usage() { echo "Usage: $(basename $0) " } -if [ "$5" == "" ]; then +if [ "$5" = "" ]; then print_usage echo -e "Error: too few arguments\n" exit 1 diff --git a/test/test_valgrind.sh b/test/test_valgrind.sh index ef314b3f7d..240e4b3f38 100755 --- a/test/test_valgrind.sh +++ b/test/test_valgrind.sh @@ -20,7 +20,7 @@ if ! valgrind --version > /dev/null; then exit 1 fi -if [ "$3" == "" ]; then +if [ "$3" = "" ]; then echo -e "error: too few arguments\n" print_usage exit 1