From 839e6e0936710ef62bd2c08456a8237b5ea19e8e Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Mon, 23 Nov 2020 23:34:06 +0100 Subject: [PATCH] Prevent displaying of bash errors in output --- app/controllers/submissions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/submissions_controller.rb b/app/controllers/submissions_controller.rb index fff49cc3..66b7f6b6 100644 --- a/app/controllers/submissions_controller.rb +++ b/app/controllers/submissions_controller.rb @@ -253,7 +253,7 @@ class SubmissionsController < ApplicationController # If no test command is set, use the run_command for the RegEx below. Otherwise, no output will be displayed! test_command = run_command end - unless /root|workspace|#{run_command}|#{test_command}/.match(message) + unless /root|workspace|#{run_command}|#{test_command}|bash: cmd:canvasevent: command not found/.match(message) parse_message(message, 'stdout', tubesock, container) end end