aboutsummaryrefslogtreecommitdiff
path: root/2022/two
blob: 8dd0080076bcfe5dc52ee786c37e504761a81103 (plain) (blame)
1
2
3
4
5
6
7
#!/bin/bash

source "vars"
LEVEL="2"
SUBMIT_URL="https://adventofcode.com/${YEAR}/day/$((10#${DAY}))/answer"

curl $SUBMIT_URL --cookie "session=${TOKEN}" --data "level=${LEVEL}&answer=$1" | rg -C 1 "main"