index
:
Advent-of-Code-2018.git
master
Advent of Code answers for 2018
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
-rwxr-xr-x
new
6
1 files changed, 5 insertions, 1 deletions
diff --git a/new b/new
index 4710d71..8efe6c9 100755
--- a/
new
+++ b/
new
@@ -1,6 +1,10 @@
#!/bin/bash
-D=$1
+if [ "x$1" == "x" ]; then
+ D=$(date +%d)
+else
+ D=$1
+fi
cp -r skel day$D
sed -i "s/DAY = /DAY = ${D}/" day${D}/Makefile