X-Git-Url: https://git.sommitrealweird.co.uk/advent-of-code-2019.git/blobdiff_plain/d6df687f21c08b115abd1eb34c43ab4a3c790b9e..24a0a2360eb2e4b4332ce45ba5888e72f970428a:/day10/check_asteroids.sh?ds=sidebyside diff --git a/day10/check_asteroids.sh b/day10/check_asteroids.sh old mode 100644 new mode 100755 index d333a33..84958ed --- a/day10/check_asteroids.sh +++ b/day10/check_asteroids.sh @@ -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