Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4fa41c9

Browse files
committed
Fix #23 : Deletion now doesn't delete all tags...
Preparing the 0.6.6
1 parent 4a24285 commit 4fa41c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ slug() {
158158

159159
# version
160160
RELEASE='$Format:%h$'
161-
VERSION='0.6.5'
161+
VERSION='0.6.6'
162162

163163
#
164164
# Output usage info
@@ -556,8 +556,8 @@ delete_bookmark() {
556556
echo "${_nl}" >> "${_BM_DELETE_FILE}"
557557
fi
558558
[[ ${_BM_DELETE_PICTURE} = true || ${__p:=0} -eq 1 ]] && rm -f -- "${_BM_SCREENSHOT_DIRECTORY}/${_nl%%|*}.png"
559-
_nl="${_nl//\|/\\|}"
560-
sed -i -e '/'"${_nl//\//\\/}"'/d' "${_BM_BOOKMARK_FILE}"
559+
IFS='|' read m d a u T t <<< "${_nl}"
560+
sed -i -e '/^'"${m}.*${u//\//\\/}.*${t//\//\\/}"'$/d' "${_BM_BOOKMARK_FILE}"
561561
done <<< "$(echo -e "${_lines}")"
562562
else
563563
die "You're not allowed to delete entries. Change the _BM_DELETE_ALLOWED to true !"

0 commit comments

Comments
 (0)