From a2eeff85b5ae4a363adc75581cbb76cb1d48a02d Mon Sep 17 00:00:00 2001 From: Vrganj Date: Sun, 17 Jan 2021 22:36:52 +0000 Subject: [PATCH] Revert back to the mess the awk executor was --- lxc/executors/awk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lxc/executors/awk b/lxc/executors/awk index 8590654..dafa525 100755 --- a/lxc/executors/awk +++ b/lxc/executors/awk @@ -1,4 +1,6 @@ #!/bin/bash cd /tmp/$2 -timeout -s KILL 3 awk -f code.code < stdin.stdin +timeout -s KILL 2 sed "/___code___/Q" code.code > code.stdin +timeout -s KILL 2 sed "1,/___code___/d" code.code > code.awk +timeout -s KILL 3 awk -f code.awk < code.stdin