Skip to content

Commit d1cce66

Browse files
committed
moved new lines to printf's format
1 parent 927a64b commit d1cce66

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git_sync.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ print_info() {
2222
# `%b` with "message" protects against format injection:
2323
# the string is treated as _data_, not a _format_.
2424
printf "%b" "${FORMAT_ITALIC}${FORMAT_GREEN}"
25-
printf "%b" "${message}\n"
25+
printf "%b\n" "${message}"
2626
printf "%b" "${FORMAT_RESET}"
2727
}
2828

@@ -35,7 +35,7 @@ print_warning() {
3535
# `%b` with "message" protects against format injection:
3636
# the string is treated as _data_, not a _format_.
3737
printf "%b" "${FORMAT_ITALIC}${FORMAT_YELLOW}"
38-
printf "%b" "${message}\n"
38+
printf "%b\n" "${message}"
3939
printf "%b" "${FORMAT_RESET}"
4040
}
4141

@@ -48,7 +48,7 @@ print_error() {
4848
# `%b` with "message" protects against format injection:
4949
# the string is treated as _data_, not a _format_.
5050
printf "%b" "${FORMAT_ITALIC}${FORMAT_RED}"
51-
printf "%b" "${message}\n"
51+
printf "%b\n" "${message}"
5252
printf "%b" "${FORMAT_RESET}"
5353
}
5454

0 commit comments

Comments
 (0)