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 #!/bin/bash
if [ "${1}" != "" ]; then if [ "${1}" != "" ]; then
mkdir ${1} mkdir -p ${1}
touch ${1}/input touch ${1}/{input,testinput}
cp main.go.tmpl ${1}/main.go cp -n main.go.tmpl ${1}/main.go
fi fi