summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.local/bin/linkhandler4
1 files changed, 4 insertions, 0 deletions
diff --git a/.local/bin/linkhandler b/.local/bin/linkhandler
index 5fff65e..fb8d071 100755
--- a/.local/bin/linkhandler
+++ b/.local/bin/linkhandler
@@ -30,6 +30,10 @@ main()
;;
*)
if echo "$1" | grep -Eqx '^https?://[^/]*\.onion(/.*)?'; then
+ if ! command -v tor-browser > /dev/null; then
+ note "tor browser not installed"
+ exit 1
+ fi
exec tor-browser "$1" >/dev/null 2>&1
else
exec "$BROWSER" "$1" >/dev/null 2>&1