From 4b9029ef427db8379495a10de65bec8b5ac406f4 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Wed, 5 Jul 2023 12:02:49 +0530 Subject: dbook: fail gracefully when bookmarks is empty --- dbook | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dbook') diff --git a/dbook b/dbook index 81a8dd1..2557a9a 100755 --- a/dbook +++ b/dbook @@ -289,6 +289,8 @@ main() ;; "") dep_check "xdg-open" + [ -s "$book_conf" ] || + die "no bookmarks, try dbook -h" data="$(parse_name | "$menu" -p " " -l 25 | parse_data)" [ -z "$data" ] && -- cgit v1.2.3