]> www.fi.muni.cz Git - aoc.git/commitdiff
get.sh: fix for $URLDAY
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 8 Dec 2022 09:11:44 +0000 (10:11 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Thu, 8 Dec 2022 09:11:44 +0000 (10:11 +0100)
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"