From 721daa05f9884eabb848f0ca3ae442a49ee7246d Mon Sep 17 00:00:00 2001 From: Loi Nguyen <113363230+LoiNguyenCS@users.noreply.github.com> Date: Fri, 24 Nov 2023 18:24:35 -0500 Subject: [PATCH] add {} to typecheck_test_outputs.sh --- typecheck_test_outputs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typecheck_test_outputs.sh b/typecheck_test_outputs.sh index 436d9c3b..ebb0ee8a 100755 --- a/typecheck_test_outputs.sh +++ b/typecheck_test_outputs.sh @@ -15,7 +15,7 @@ for testcase in * ; do # javac relies on word splitting # shellcheck disable=SC2046 javac -proc:only -nowarn $(find . -name "*.java") \ - || echo "Running javac on ${testcase}/expected issues one or more errors, which are printed above." ; returnval=2 + || { echo "Running javac on ${testcase}/expected issues one or more errors, which are printed above."; returnval=2; } cd ../.. || exit 1 done @@ -25,4 +25,4 @@ elif [ "${returnval}" = 2 ]; then echo "Some expected test outputs do not compile successfully. See the above error output for details." fi -exit ${returnval} \ No newline at end of file +exit ${returnval}