diff options
Diffstat (limited to 'fetch-inputs')
| -rwxr-xr-x | fetch-inputs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fetch-inputs b/fetch-inputs index 4c3b00e..f88583b 100755 --- a/fetch-inputs +++ b/fetch-inputs @@ -3,11 +3,11 @@ cd "$(dirname "$0")" find . \ - -regextype egrep \ -mindepth 2 \ -maxdepth 2 \ -type d \ - -regex '\./[0-9]{4}/[0-9]{2}' \ + -regex '\./[0-9]\{4\}/[0-9]\{2\}' \ + | sort \ | while IFS=/ read _ y d do file=$y/$d/input @@ -16,4 +16,4 @@ do wget -q --load-cookies=.cookies -O "$file" \ "https://adventofcode.com/$y/day/${d#0}/input" >&2 printf 'DONE\n' >&2 -done
\ No newline at end of file +done |