Don't attempt to run executable if compilation fails

It was just ugly.
This commit is contained in:
Eleanor Bartle 2021-02-10 17:41:14 +11:00 committed by GitHub
parent 4d344db148
commit f8391e9aaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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