summaryrefslogtreecommitdiff
path: root/2024/get_input.sh
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2024-12-02 00:01:56 +0100
committerTom Smeding <tom@tomsmeding.com>2024-12-02 00:02:22 +0100
commitec6e98f6aed5684131a0fd42ed1d47864eb821aa (patch)
tree6e96c6e3aee0257f17b89c1a7a78dd1ead6cc09a /2024/get_input.sh
parentc0ed02a358e658b12287437a446513f9fab2cd5d (diff)
2024
Diffstat (limited to '2024/get_input.sh')
-rwxr-xr-x2024/get_input.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/2024/get_input.sh b/2024/get_input.sh
new file mode 100755
index 0000000..a94f7ce
--- /dev/null
+++ b/2024/get_input.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+set -eu
+curl -H "Cookie: session=$(cat aoc-cookie.txt)" https://adventofcode.com/2024/day/"$1"/input >"$1".in