From 98bac79a5878faff965728ad668c65da8a3c56e1 Mon Sep 17 00:00:00 2001 From: tsxv478 Date: Sat, 18 Jan 2025 00:29:18 +0300 Subject: sshmenu: check if dmenu is installed --- sshmenu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshmenu b/sshmenu index 8bec492..115a111 100755 --- a/sshmenu +++ b/sshmenu @@ -1,6 +1,6 @@ #!/bin/sh -if [ $DISPLAY ]; then +if [ $DISPLAY ] && command -v dmenu >/dev/null; then host=$(grep "^Host" $HOME/.ssh/config | cut -d ' ' -f 2 | dmenu -i -c -l 10 -p "SSH to:") [ "$host" ] || exit 0 -- cgit v1.2.3