From af5c8f4c8bb4cc4200a7552fc09d8d054581b4e4 Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Thu, 8 Dec 2022 10:11:44 +0100 Subject: [PATCH] get.sh: fix for $URLDAY --- 2022/get.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2022/get.sh b/2022/get.sh index 3c5b5ec..d26846b 100755 --- a/2022/get.sh +++ b/2022/get.sh @@ -3,7 +3,7 @@ DAY=`date +%d|sed 's/ //g'` URLDAY=`echo $DAY|sed 's/^0//'` test -n "$1" && DAY="$1" -FILE="$((2*DAY - 1))in.txt" +FILE="$((2*URLDAY - 1))in.txt" COOKIE=`cat cookie` UA="User-Agent: kas at yenya.net, https://www.fi.muni.cz/~kas/git/aoc.git" -- 2.43.5