summaryrefslogtreecommitdiff
path: root/bookmark
diff options
context:
space:
mode:
authorBlake Romero <blake@blkrom.com>2024-11-28 23:39:17 +0000
committerBlake Romero <blake@blkrom.com>2024-11-28 23:39:17 +0000
commit6eca4fcae7a42a1368b11e469330143884449e15 (patch)
tree6df2f5564c0dd2482cc2ec1894be21e827376148 /bookmark
parent7128f8bfd303e480eb8e02466b67e7094d030704 (diff)
Add link check for bookmark script
Diffstat (limited to 'bookmark')
-rwxr-xr-xbookmark1
1 files changed, 1 insertions, 0 deletions
diff --git a/bookmark b/bookmark
index 938eb04..b7dcf78 100755
--- a/bookmark
+++ b/bookmark
@@ -52,6 +52,7 @@ fi
description=$(sed 's/# //' "$bookmarks" | sed -n 'p;n' | bemenu -p 'Select a Bookmark')
[ -z "$description" ] && exit 1
link=$(sed -n "/^# $description$/{n;p}" "$bookmarks")
+[ -z "$link" ] && exit 1
# Perform an action on a bookmark
case "$(printf 'Open\nCopy\nType' | bemenu -p 'Bookmark action')" in