]> git.sommitrealweird.co.uk Git - advent-of-code-2019.git/blobdiff - day10/check_asteroids.sh
Rename days to 2 digits always
[advent-of-code-2019.git] / day10 / check_asteroids.sh
old mode 100644 (file)
new mode 100755 (executable)
index d333a33..84958ed
@@ -3,7 +3,8 @@
 set -u
 set -e
 
-filename=${1:-small_grid.txt}
+basedir=$(dirname $(readlink -f ${BASH_SOURCE}))
+filename=${1:-$basedir/3_4_8.txt}
 
 exec 3<$filename