mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-25 22:01: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:
parent
0c54b565f4
commit
66ffeacafd
1 changed files with 16 additions and 6 deletions
|
@ -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=$?
|
||||||
|
|
Loading…
Reference in a new issue