Skip to content

Commit

Permalink
"improved the setup template for the tests; fixed some test issues"
Browse files Browse the repository at this point in the history
  • Loading branch information
Josee9988 committed Jul 9, 2021
1 parent b6c4007 commit aa4e414
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions SETUP_TEMPLATE.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ######
Expand All @@ -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"
Expand Down

0 comments on commit aa4e414

Please sign in to comment.