aboutsummaryrefslogtreecommitdiff
path: root/day01/entrypoint
diff options
context:
space:
mode:
authorNat Lasseter <user@4574.co.uk>2019-12-01 11:15:09 +0000
committerNat Lasseter <user@4574.co.uk>2019-12-01 11:15:09 +0000
commitb1692f98b614e731cd42fc770dff77e2f3c136ff (patch)
tree5066dfa5a78db90279ceaec6b5a87049f06973c8 /day01/entrypoint
parent04dbc1e0b9c56198168190d45fa096c605cafd7f (diff)
Day 1 complete
Diffstat (limited to 'day01/entrypoint')
-rwxr-xr-xday01/entrypoint13
1 files changed, 13 insertions, 0 deletions
diff --git a/day01/entrypoint b/day01/entrypoint
new file mode 100755
index 0000000..8982d21
--- /dev/null
+++ b/day01/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