diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-12-06 08:12:22 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-12-06 08:12:22 +0100 |
| commit | 31e9da7f4bd5078cc2ddaf091225230d0f11982d (patch) | |
| tree | 35d0961256a4720f4ea00c18c4c1888bf7045d8e | |
| parent | 183d2d20d311cdb296176496bba10e1c17f273fd (diff) | |
| download | scripts-31e9da7f4bd5078cc2ddaf091225230d0f11982d.tar.gz scripts-31e9da7f4bd5078cc2ddaf091225230d0f11982d.zip | |
Fix aoc
Diffstat (limited to '')
| -rwxr-xr-x | aoc | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -29,7 +29,8 @@ url="https://adventofcode.com/$year/day/$daynozero" | |||
| 29 | curl "$url" | sed -n '/<pre><code>/,/<\/code><\/pre>/ p' | (\ | 29 | curl "$url" | sed -n '/<pre><code>/,/<\/code><\/pre>/ p' | (\ |
| 30 | i=1 | 30 | i=1 |
| 31 | rm -f "code-$i.txt" | 31 | rm -f "code-$i.txt" |
| 32 | while read line; do | 32 | IFS='' |
| 33 | while read -r line; do | ||
| 33 | if [ "$line" = "</code></pre>" ]; then | 34 | if [ "$line" = "</code></pre>" ]; then |
| 34 | i=$((i + 1)) | 35 | i=$((i + 1)) |
| 35 | rm -f "code-$i.txt" | 36 | rm -f "code-$i.txt" |
