Skip to content

Commit c0f05ff

Browse files
authored
Added newlines
Printf replaced echo at some point in the code base, but newlines were not added. Added newlines to fix this (quick fix).
1 parent 00f9e66 commit c0f05ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

notes

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ find_notes() {
8787

8888
grep_notes() {
8989
if [ ! "$#" -gt 0 ]; then
90-
printf "Grep requires a pattern, but none was provided."
90+
printf "Grep requires a pattern, but none was provided.\n"
9191
return 1
9292
fi
9393

@@ -144,7 +144,7 @@ remove_note() {
144144
fi
145145

146146
if [ ! "$#" -gt 0 ]; then
147-
printf "Remove requires a file or folder, but none was provided."
147+
printf "Remove requires a file or folder, but none was provided.\n"
148148
return 1
149149
fi
150150

@@ -205,7 +205,7 @@ cat_note() {
205205
local note_path=$1
206206

207207
if [[ -z "$note_path" ]]; then
208-
printf "Cat requires a name, but none was provided."
208+
printf "Cat requires a name, but none was provided.\n"
209209
exit 1
210210
fi
211211

0 commit comments

Comments
 (0)