more idiot-proof new-day script

This commit is contained in:
David 2020-12-26 15:54:56 -05:00
parent f1d6903fba
commit 3e9fe4153c

6
new.sh
View File

@ -1,7 +1,7 @@
#!/bin/bash
if [ "${1}" != "" ]; then
mkdir ${1}
touch ${1}/input
cp main.go.tmpl ${1}/main.go
mkdir -p ${1}
touch ${1}/{input,testinput}
cp -n main.go.tmpl ${1}/main.go
fi