We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7109153 commit 55f25fcCopy full SHA for 55f25fc
notes
@@ -151,7 +151,8 @@ remove_note() {
151
local note_name="$*"
152
local to_remove="$notes_dir/$note_name"
153
154
- if [ -f "$notes_dir/$note_name.$NOTES_EXT" ]; then
+ if [ ! -f "$to_remove" ] && [ -f "$notes_dir/$note_name.$NOTES_EXT" ]; then
155
+ # append default extension only if no file exists with exact filename given
156
to_remove="$notes_dir/$note_name.$NOTES_EXT"
157
fi
158
rm "${rm_args[@]}" "$to_remove"
0 commit comments