mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-15 11:50:41 +01: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:
@@ -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=$?
|
||||||
|
|||||||
Reference in New Issue
Block a user