aboutsummaryrefslogtreecommitdiff
path: root/new
diff options
context:
space:
mode:
Diffstat (limited to 'new')
-rwxr-xr-xnew6
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