From f8391e9aaf41a7c79d0d2f7076a219a6e8029182 Mon Sep 17 00:00:00 2001 From: Eleanor Bartle Date: Wed, 10 Feb 2021 17:41:14 +1100 Subject: [PATCH] Don't attempt to run executable if compilation fails It was just ugly. --- lxc/executors/zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxc/executors/zig b/lxc/executors/zig index b046672..bc2a971 100644 --- a/lxc/executors/zig +++ b/lxc/executors/zig @@ -2,5 +2,5 @@ cd /tmp/$1 cp code.code main.zig -timeout -s KILL 10 zig build-exe main.zig +timeout -s KILL 10 zig build-exe main.zig && \ timeout -s KILL 3 xargs -a args.args -d '\n' ./main