From 3e9fe4153c5e8c2865b7e0031e5c9e4a724030c2 Mon Sep 17 00:00:00 2001 From: David Ashby Date: Sat, 26 Dec 2020 15:54:56 -0500 Subject: [PATCH] more idiot-proof new-day script --- new.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/new.sh b/new.sh index 3da7b75..b1afc57 100755 --- a/new.sh +++ b/new.sh @@ -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