Commit: a421893c3d46fc9b27966dca2a76da8ee5ae2559
Parent: 9c4d3c1882c7fe6f71604544f0de4ff0338c9f7b
Author: 0x766F6964
Date: Sun, 14 Feb 2021 16:38:25 -0700
bookmarks: replace awk with cut and test seperately
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bin/bookmarks b/bin/bookmarks
@@ -6,6 +6,7 @@
BOOKMARKS="$HOME/doc/urls"
url=$(grep -v -e "#" -e "^$" "$BOOKMARKS" | dmenu -i -p "open:" -l 10 |\
- awk '{print $1}') && exit 0
+ cut -f 1 -d ' ')
+[ -z "$url" ] && exit 0
furfox $url