aboutsummaryrefslogtreecommitdiff
path: root/day05/entrypoint
diff options
context:
space:
mode:
authorNat Lasseter <user@4574.co.uk>2019-12-05 13:44:02 +0000
committerNat Lasseter <user@4574.co.uk>2019-12-05 13:44:02 +0000
commitfdaf6d524f2805fbba25eef2572eee9768f25a40 (patch)
treeadf912a51102c98366eba7952857ab38fccb6ec3 /day05/entrypoint
parente88f1129a40134fb60a2e90b495327f6ccada871 (diff)
Day 05
Diffstat (limited to 'day05/entrypoint')
-rwxr-xr-xday05/entrypoint13
1 files changed, 13 insertions, 0 deletions
diff --git a/day05/entrypoint b/day05/entrypoint
new file mode 100755
index 0000000..8982d21
--- /dev/null
+++ b/day05/entrypoint
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+if [ -x part1 ] ; then
+ echo -ne "Part 1:\n\t"
+ time ./part1 < input
+fi
+if [ -x part1 -a -x part2 ] ; then
+ echo
+fi
+if [ -x part2 ] ; then
+ echo -ne "Part 2:\n\t"
+ time ./part2 < input
+fi