https://www.fi.muni.cz/~kas/git
/
aoc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da03373
)
get.sh: fix for $URLDAY
author
Jan "Yenya" Kasprzak
<kas@fi.muni.cz>
Thu, 8 Dec 2022 09:11:44 +0000
(10:11 +0100)
committer
Jan "Yenya" Kasprzak
<kas@fi.muni.cz>
Thu, 8 Dec 2022 09:11:44 +0000
(10:11 +0100)
2022/get.sh
patch
|
blob
|
history
diff --git
a/2022/get.sh
b/2022/get.sh
index 3c5b5ec44fd4ada2779a79b933995cd6646b133b..d26846bc2bbb823213287df738f3dd2309538fd2 100755
(executable)
--- 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*
URL
DAY - 1))in.txt"
COOKIE=`cat cookie`
UA="User-Agent: kas at yenya.net, https://www.fi.muni.cz/~kas/git/aoc.git"