File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -108,21 +108,23 @@ new_note() {
108
108
109
109
remove_note () {
110
110
local rm_args=()
111
- local files= " $@ "
111
+ local len= ${ #@ }
112
112
113
113
if [[ " $1 " == " -r" || " $1 " == " --recursive" ]]; then
114
114
rm_args+=(" --recursive" )
115
115
shift
116
116
fi
117
117
118
- for files; do
119
- local note_name=" $* "
118
+ len=${#@ }
119
+ for i in $( seq 1 $len ) ; do
120
+ local note_name=" $1 "
120
121
local to_remove=" $notes_dir /$note_name "
121
122
122
123
if [ -f " $notes_dir /$note_name$file_ext " ]; then
123
124
to_remove=" $notes_dir /$note_name$file_ext "
124
125
fi
125
126
rm " ${rm_args[@]} " " $to_remove "
127
+ shift
126
128
done
127
129
}
128
130
@@ -144,7 +146,7 @@ open_something() {
144
146
open_note () {
145
147
local note_path
146
148
local ext_check
147
- local buffer=$@
149
+ local buffer=$@
148
150
local files=()
149
151
150
152
IFS=' ,'
You can’t perform that action at this time.
0 commit comments