aboutsummaryrefslogtreecommitdiff
path: root/day06/entrypoint
diff options
context:
space:
mode:
authorNat Lasseter <user@4574.co.uk>2018-12-06 12:07:00 +0000
committerNat Lasseter <user@4574.co.uk>2018-12-06 12:07:00 +0000
commit08fd489704409e1d7414ff51bdac5d789cabb668 (patch)
treeca14c4a40d7cd90c8507f99c550e2c8297e19467 /day06/entrypoint
parent67d468a613bd6e20b2e9607f350bc0878e2ae8d8 (diff)
[day06] Done
Diffstat (limited to 'day06/entrypoint')
-rwxr-xr-xday06/entrypoint13
1 files changed, 13 insertions, 0 deletions
diff --git a/day06/entrypoint b/day06/entrypoint
new file mode 100755
index 0000000..8982d21
--- /dev/null
+++ b/day06/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