summaryrefslogtreecommitdiff
path: root/bookmark
diff options
context:
space:
mode:
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