From bccc7cb02d930c409c7efe71ec078733e3ff9e16 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Sat, 25 Sep 2021 13:52:02 -0500 Subject: [PATCH] Posix shell compliance Posix shell does not do ==, it only does one = --- action/steps/run_tests.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/action/steps/run_tests.sh b/action/steps/run_tests.sh index 45fe821..53a6cff 100644 --- a/action/steps/run_tests.sh +++ b/action/steps/run_tests.sh @@ -69,7 +69,7 @@ ls -alh $UNITY_PROJECT_PATH # EDIT_MODE_EXIT_CODE=0 -if [ "$EDIT_MODE" == "true" ]; then +if [ "$EDIT_MODE" = "true" ]; then echo "" echo "###########################" echo "# Testing in EditMode #" @@ -106,7 +106,7 @@ fi # Testing in PlayMode # PLAY_MODE_EXIT_CODE=0 -if [ "$PLAY_MODE" == "true" ]; then +if [ "$PLAY_MODE" = "true" ]; then echo "" echo "###########################" echo "# Testing in PlayMode #" @@ -150,7 +150,7 @@ echo "###########################" echo "" ls -alh $UNITY_PROJECT_PATH -if [ "$EDIT_MODE" == "true" ]; then +if [ "$EDIT_MODE" = "true" ]; then echo "" echo "###########################" echo "# Edit Mode Results #" @@ -160,7 +160,7 @@ if [ "$EDIT_MODE" == "true" ]; then cat "$FULL_ARTIFACTS_PATH/editmode-results.xml" | grep test-run | grep Passed fi -if [ "$PLAY_MODE" == "true" ]; then +if [ "$PLAY_MODE" = "true" ]; then echo "" echo "###########################" echo "# Play Mode Results #"