File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ notes_dir="${configured_dir:-$HOME/notes}"
5
5
escaped_notes_dir=$( printf $notes_dir | sed -e ' s/[]\/$*.^|[]/\\&/g' )
6
6
7
7
# If no $EDITOR, look for `editor` (symlink on debian/ubuntu/etc)
8
- if [ -z $EDITOR ] && type editor & > /dev/null; then
8
+ if [ -z " $EDITOR " ] && type editor & > /dev/null; then
9
9
EDITOR=editor
10
10
fi
11
11
@@ -18,7 +18,7 @@ find_notes() {
18
18
find_result=$?
19
19
formatted_output=$( printf " $find_output " | without_notes_dir)
20
20
21
- if [[ $find_result == 0 && $formatted_output ]]; then
21
+ if [[ $find_result == 0 && " $formatted_output " ]]; then
22
22
printf " $formatted_output \n"
23
23
return 0
24
24
else
@@ -36,7 +36,7 @@ grep_notes() {
36
36
grep_result=$?
37
37
formatted_output=$( printf " $grep_output " | without_notes_dir)
38
38
39
- if [[ $grep_result == 0 && $formatted_output ]]; then
39
+ if [[ $grep_result == 0 && " $formatted_output " ]]; then
40
40
printf " $formatted_output \n"
41
41
return 0
42
42
else
You can’t perform that action at this time.
0 commit comments