From b0a64dca2adc570d8f09d1938d1f83d08732eacc Mon Sep 17 00:00:00 2001 From: Michael Vasseur <14887731+vmcj@users.noreply.github.com> Date: Thu, 23 Nov 2023 09:26:39 +0100 Subject: [PATCH] Run the command instead of reading a non-existing variable Verified with the variable 'isboom' which doesn't exist, it always returned true. After changing to `if isboom` it would error as that function does not exist, proving that this is the proper fix as ischroot does exist. --- .../hello/submissions/run_time_error/test-chroot-escape.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example_problems/hello/submissions/run_time_error/test-chroot-escape.sh b/example_problems/hello/submissions/run_time_error/test-chroot-escape.sh index 017c0115aa..fde0cdf4f2 100644 --- a/example_problems/hello/submissions/run_time_error/test-chroot-escape.sh +++ b/example_problems/hello/submissions/run_time_error/test-chroot-escape.sh @@ -5,10 +5,10 @@ # @EXPECTED_RESULTS@: RUN_TIME_ERROR ischroot -if [ ischroot ]; then +if ischroot; then # We expect to be in the jail chroot /proc/1/root - if [ ischroot ]; then + if ischroot; then # We expect to still be in the jail exit 1 else