fix unexpected printing of usage

This commit is contained in:
Liam Waldron 2023-11-07 13:15:59 -05:00
parent aa5d89e7ee
commit 912edb375e

View File

@ -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 "$@"