]> www.fi.muni.cz Git - aoc.git/blobdiff - 2022/get.sh
get.sh: fix for $URLDAY
[aoc.git] / 2022 / get.sh
index 3c5b5ec44fd4ada2779a79b933995cd6646b133b..d26846bc2bbb823213287df738f3dd2309538fd2 100755 (executable)
@@ -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"