diff --git a/SETUP_TEMPLATE.sh b/SETUP_TEMPLATE.sh index 49f1a28..088dc07 100644 --- a/SETUP_TEMPLATE.sh +++ b/SETUP_TEMPLATE.sh @@ -65,11 +65,16 @@ fi echo -e "Thanks for using ${GREEN}Josee9988/project-template${NC}" echo -e "Read carefully all the documentation before you continue executing this script: ${UPurple}https://github.com/Josee9988/project-template${NC}\n" -if [ ! "$4" = "$OMIT_STR" ]; then # if the project's type has been manually specified - read -p "Enter $(echo -e "$BBLUE""what your project is""$NC") (program/extension/API/web/CLI tool/backend/frontend/scrapper/automation tool/etc): " PROJECT_TYPE - read -p "Is this data correct: username \"$(echo -e "$GREEN""$NEW_USERNAME""$NC")\", email: \"$(echo -e "$GREEN""$NEW_EMAIL""$NC")\", project name: \"$(echo -e "$GREEN""$PROJECT_NAME""$NC")\", of type: \"$(echo -e "$GREEN""$PROJECT_TYPE""$NC")\" (y/n)? " choice +if [ -n "$4" ]; then # if the project's type has been manually specified + PROJECT_TYPE=$4 else + read -p "Enter $(echo -e "$BBLUE""what your project is""$NC") (program/extension/API/web/CLI tool/backend/frontend/scrapper/automation tool/etc): " PROJECT_TYPE +fi + +if [ "$5" = "$OMIT_STR" ]; then # if the ignore flag has been manually specified choice="y" +else + read -p "Is this data correct: username \"$(echo -e "$GREEN""$NEW_USERNAME""$NC")\", email: \"$(echo -e "$GREEN""$NEW_EMAIL""$NC")\", project name: \"$(echo -e "$GREEN""$PROJECT_NAME""$NC")\", of type: \"$(echo -e "$GREEN""$PROJECT_TYPE""$NC")\" (y/n)? " choice fi ###### START OF THE SCRIPT ###### @@ -92,7 +97,7 @@ y | Y) writeCHANGELOG # write the basic structure of the CHANGELOG.md echo -e "# add your own funding links" >.github/FUNDING.yml # remove author's custom funding links - if [ ! "$4" = "$OMIT_STR" ]; then # if the ignore option for tests has been specified + if [ ! "$5" = "$OMIT_STR" ]; then # if the ignore option for tests has been specified git add CHANGELOG.md README.md .gitignore .github SETUP_TEMPLATE.sh LICENSE bin # commit the new files git -c color.status=always status | less -REX # show git status with colours echo -e "Committing the changes for you :)\n"