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