day one
This commit is contained in:
7
today.sh
Normal file → Executable file
7
today.sh
Normal file → Executable file
@@ -3,7 +3,7 @@
|
||||
__year=2024
|
||||
|
||||
__day="${1}"
|
||||
if [ "${day}" == ""]; then
|
||||
if [ "${__day}" == "" ]; then
|
||||
__day=$(date '+%d')
|
||||
fi
|
||||
|
||||
@@ -15,7 +15,4 @@ if [ ! -f "${padded}/inputs/input" ]; then
|
||||
-A "https://git.yetaga.in/alazyreader/AdventOfCode${__year}/" \
|
||||
-H "Cookie: session=`cat .cookie`" https://adventofcode.com/${__year}/day/${__day##0}/input > "${padded}/inputs/input"
|
||||
fi
|
||||
# if [ ! -f "${padded}/main.go" ]; then
|
||||
# cp -n main.go.tmpl ${padded}/main.go
|
||||
# fi
|
||||
open "https://adventofcode.com/${__year}/day/${__day}"
|
||||
open "https://adventofcode.com/${__year}/day/${__day##0}"
|
||||
|
Reference in New Issue
Block a user