From 912edb375e0e7d24d00b81e040272ef598c66898 Mon Sep 17 00:00:00 2001 From: Liam Waldron Date: Tue, 7 Nov 2023 13:15:59 -0500 Subject: [PATCH] fix unexpected printing of usage --- tools/project-init/everest-project-init | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/project-init/everest-project-init b/tools/project-init/everest-project-init index a5dd273..493ff4c 100755 --- a/tools/project-init/everest-project-init +++ b/tools/project-init/everest-project-init @@ -52,7 +52,7 @@ usage_small() { mkprojectdir() { printf "${blue}[i]${reset} Creating project directory...\n" - mkdir ./${2} + mkdir -v ./${2} printf "${green}[${check}]${reset} Directory created.\n" } @@ -60,11 +60,11 @@ mkskel() { printf "${blue}[i]${reset} Creating project directory skeleton...\n" case ${3} in "C") - mkdir ${2}/{src,include} + mkdir -v ${2}/{src,include} ;; "Bash") - mkdir ${2}/{src,install,man} - mkdir ${2}/src/{bin,etc,man} + mkdir -v ${2}/{src,install,man} + mkdir -v ${2}/src/{bin,etc,man} esac printf "${green}[${check}]${reset} Project directory skeleton created.\n" } @@ -121,6 +121,7 @@ case $1 in printf "Available templates:\n" printf "C\n" printf "Bash/POSIX sh\n" + exit 0 ;; -*|--*) usage_small "$@"