Skip to content

Commit e08fd98

Browse files
committed
Make sure we always include trailing newlines
1 parent 68c058e commit e08fd98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

notes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ find_notes() {
1414
formatted_output=$(printf "$find_output" | without_notes_dir)
1515

1616
if [[ $find_result == 0 && $formatted_output ]]; then
17-
printf "$formatted_output"
17+
printf "$formatted_output\n"
1818
return 0
1919
else
2020
return 2
@@ -32,7 +32,7 @@ grep_notes() {
3232
formatted_output=$(printf "$grep_output" | without_notes_dir)
3333

3434
if [[ $grep_result == 0 && $formatted_output ]]; then
35-
printf "$formatted_output"
35+
printf "$formatted_output\n"
3636
return 0
3737
else
3838
return 2

0 commit comments

Comments
 (0)