aboutsummaryrefslogtreecommitdiff
path: root/day02/entrypoint
diff options
context:
space:
mode:
authorNat Lasseter <user@4574.co.uk>2019-12-02 12:58:09 +0000
committerNat Lasseter <user@4574.co.uk>2019-12-02 12:58:09 +0000
commit423d2bcb74df7290d2d7e8d3d4aaea278cd1e98b (patch)
treeb459d4fb4f3bc622c661d512f9825702c7aaf2f1 /day02/entrypoint
parentb1692f98b614e731cd42fc770dff77e2f3c136ff (diff)
Day 02, though it's not going to sclae whell when we add more instructions!
Diffstat (limited to 'day02/entrypoint')
-rwxr-xr-xday02/entrypoint13
1 files changed, 13 insertions, 0 deletions
diff --git a/day02/entrypoint b/day02/entrypoint
new file mode 100755
index 0000000..8982d21
--- /dev/null
+++ b/day02/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