From: Jan "Yenya" Kasprzak Date: Thu, 8 Dec 2022 09:11:44 +0000 (+0100) Subject: get.sh: fix for $URLDAY X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=af5c8f4c8bb4cc4200a7552fc09d8d054581b4e4;p=aoc.git get.sh: fix for $URLDAY --- 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"