]> git.sommitrealweird.co.uk Git - advent-of-code-2019.git/blob - day13/run.sh
Add videos of it happening
[advent-of-code-2019.git] / day13 / run.sh
1 #!/bin/bash
2
3 exec 3<input.txt
4 OLDIFS=$IFS
5 IFS="," read -u 3 -a instructions
6 IFS=$OLDIFS
7
8 basedir=$(dirname $(readlink -f ${BASH_SOURCE}))
9
10 . $basedir/computer.sh
11 . $basedir/screen.sh
12
13 run_program instructions 2>/dev/null | arcade_screen