diff --git a/get_input.sh b/get_input.sh index bf5cc83..8dae29f 100755 --- a/get_input.sh +++ b/get_input.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env zsh +#!/usr/bin/env sh get(){ curl -s --cookie "session=$1" "$2" | perl -pe 'chomp if eof' > "$3" @@ -14,7 +14,7 @@ for year in {2015..2023}; do d="$day" fi url="https://adventofcode.com/$year/day/$day/input" - get "$1" "$url" "input/$year/$d" & + get "$1" "$url" "input/$year/$d" done touch "input/$year/test" done