aboutsummaryrefslogtreecommitdiff
path: root/day04/entrypoint
diff options
context:
space:
mode:
authorNat Lasseter <user@4574.co.uk>2018-12-04 11:44:01 +0000
committerNat Lasseter <user@4574.co.uk>2018-12-04 11:44:01 +0000
commit0c554c06e4a15a48dc53390aaaa9c46d0c293805 (patch)
treecdd048abefa44b8be7fdeaa09ea5c19ac7a07577 /day04/entrypoint
parent205150db764cc9d62efb0a2b6653bf984e7a9de7 (diff)
[day04] failing
Diffstat (limited to 'day04/entrypoint')
-rwxr-xr-xday04/entrypoint13
1 files changed, 13 insertions, 0 deletions
diff --git a/day04/entrypoint b/day04/entrypoint
new file mode 100755
index 0000000..8982d21
--- /dev/null
+++ b/day04/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