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

source "vars"
LEVEL="1"
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"