diff options
| author | Blake Romero <blake@blkrom.com> | 2024-11-28 23:39:17 +0000 |
|---|---|---|
| committer | Blake Romero <blake@blkrom.com> | 2024-11-28 23:39:17 +0000 |
| commit | 6eca4fcae7a42a1368b11e469330143884449e15 (patch) | |
| tree | 6df2f5564c0dd2482cc2ec1894be21e827376148 /bookmark | |
| parent | 7128f8bfd303e480eb8e02466b67e7094d030704 (diff) | |
Add link check for bookmark script
Diffstat (limited to 'bookmark')
| -rwxr-xr-x | bookmark | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |
