Skip to content

Commit 68bfa43

Browse files
committed
feat(template.sh): add bash file
This bash is a commit template for git and orgnaized commits.
1 parent 8177b18 commit 68bfa43

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

template.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ if [ ! -z "$BREAKING_CHANGES" ]; then
9090
fi
9191

9292
echo
93-
echo "${GREEN}${TYPE}${SCOPE}: ${SHORT_DESC}
93+
echo "${TYPE}${SCOPE}: ${SHORT_DESC}
9494
9595
${LONG_DESC}
9696
9797
${BREAKING_CHANGES}
9898
99-
${CLOSED_ISSUES}${RESET}" | awk "{gsub(/[ \t]+$/,""); print $0}"
99+
${CLOSED_ISSUES}" | awk '{ gsub(/ /,""); print }'
100100
echo
101101

102102
# Git commit
@@ -105,9 +105,9 @@ if [ "$RESULT_CODE" = 0 ]; then
105105
git commit -m "${TYPE}${SCOPE}: ${SHORT_DESC}
106106
107107
${LONG_DESC}
108-
108+
109109
${BREAKING_CHANGES}
110-
110+
111111
${CLOSED_ISSUES}"
112112
else
113113
printf "\n${RED}❌ An error occurred. Please try again.${RESET}\n"

0 commit comments

Comments
 (0)