1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-26 14:21:58 +00:00

fix(template.sh): fix space issue

An additional number of new lines may be printed when the final result is printed.
This commit is contained in:
Ghasem Shirdel 2022-01-18 12:05:19 +03:30 committed by GitHub
parent 0c54b565f4
commit 66ffeacafd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,15 +101,25 @@ octo-org/octo-repo#100\n\n"
scope="(${scope})" scope="(${scope})"
fi fi
if [ ! -z "$breaking_changes" ]; then massage="\n ${GREEN}${type_var}${scope}: ${short_desc}\n"
breaking_changes="BREAKING CHANGE: ${breaking_changes}"
if [ ! -z "$long_desc" ] || [ ! -z "$breaking_changes" ] || [ ! -z "$closed_issues" ]; then
massage="${massage}\n"
fi fi
printf "\n ${GREEN}${type_var}${scope}: ${short_desc} if [ ! -z "$long_desc" ]; then
massage="${massage} ${long_desc}\n"
fi
${long_desc} if [ ! -z "$breaking_changes" ]; then
${breaking_changes} massage="${massage} BREAKING CHANGE: ${breaking_changes}\n"
${closed_issues}${RESET}\n\n" fi
if [ ! -z "$closed_issues" ]; then
massage="${massage} ${closed_issues}\n"
fi
printf "${massage}\n${RESET}"
# Git commit # Git commit
result_code=$? result_code=$?