diff --git a/scripts/test_subfolders.sh b/scripts/test_subfolders.sh index a6a0b73..2d7214a 100644 --- a/scripts/test_subfolders.sh +++ b/scripts/test_subfolders.sh @@ -13,7 +13,7 @@ for dir in $(find . -name "go.mod" -not -path "./go.mod" -not -path "*/testdata/ done # Check if any test failed and exit with a non-zero status -if [ "$any_test_failed" -ne 0 ]; then +if [[ "$any_test_failed" -ne 0 ]]; then echo "The tests did not pass. Please check the errors above." exit 1 fi diff --git a/scripts/test_subfolders_full.sh b/scripts/test_subfolders_full.sh index 3ea7c9d..a1991ea 100644 --- a/scripts/test_subfolders_full.sh +++ b/scripts/test_subfolders_full.sh @@ -13,7 +13,7 @@ for dir in $(find . -name "go.mod" -not -path "./go.mod" -not -path "*/testdata/ done # Check if any test failed and exit with a non-zero status -if [ "$any_test_failed" -ne 0 ]; then +if [[ "$any_test_failed" -ne 0 ]]; then echo "The tests did not pass. Please check the errors above." exit 1 fi