Recently Written · git

sbm

dmenu bookmarks. Instantly fuzzy search thousands of bookmarks and plumb them. LOOKING FOR SUCKLESS SOFTWARE EDITION? GO TO sbm-suckless INSTEAD

git clone https://github.com/equwal/sbm

Log | Files | Refs


commit e19bf8c1cbd0b6e0a4dc5b393ebae8b12c997b87
Tom Schwindl <schwindl@posteo.de>
2023-08-31 23:19:17 +0200

exit successfully after executing an action

previously, we ended up with an exit status of 1.

 bm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bm b/bm
index b0db49e..f0fb19d 100755
--- a/bm
+++ b/bm
@@ -46,12 +46,13 @@ plumb () {
 }
 
 promptflag () {
-
     action="$(printf 'copy\nadd\nedit (not implemented)\nplumb (not implemented)' | dmenu -l 4 -p 'action:')"
     [ "$action" = "copy" ]  && copy
     [ "$action" = "edit" ]  && edit
     [ "$action" = "add" ]   && add
     [ "$action" = "plumb" ] && plumb
+
+    exit 0
 }
 
 [ "$1" = '-h' ] || [ "$1" = '--help' ] && help