File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
secrets
2
- input
2
+ input [ 0-9 ] *
Original file line number Diff line number Diff line change 21
21
daypad=$( seq -f%02g $day $day )
22
22
23
23
if [ " $yes " = " 1" ]; then
24
- if [ -f input ]; then
24
+ if [ -f input$day ]; then
25
25
echo " THE INPUT ALREADY EXISTS!!!"
26
26
else
27
- curl --cookie session=$( cat secrets/session) -o input http://adventofcode.com/2016/day/$day /input
27
+ curl --cookie session=$( cat secrets/session) -o input$day http://adventofcode.com/2016/day/$day /input
28
28
fi
29
29
else
30
- curl -o input http://example.com
30
+ curl -o input$day http://example.com
31
31
fi
32
32
33
33
if [ -f $daypad .rb ]; then
@@ -37,7 +37,7 @@ if [ -f $daypad.rb ]; then
37
37
fi
38
38
39
39
if [ -f TEMPLATE.rb ]; then
40
- cat TEMPLATE.rb input > $daypad .rb
40
+ cat TEMPLATE.rb input$day > $daypad .rb
41
41
elif [ -f t.rb ]; then
42
- cat t.rb input > $daypad .rb
42
+ cat t.rb input$day > $daypad .rb
43
43
fi
You can’t perform that action at this time.
0 commit comments