From 3722315bbccef62b9bf9bcdb041868f2fcbe7c15 Mon Sep 17 00:00:00 2001 From: Brendan Taylor Date: Wed, 1 Dec 2010 10:00:51 -0700 Subject: dmenu 4.1 and 4.2 have different help messages, support both --- examples/data/scripts/util/dmenu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/data/scripts/util/dmenu.sh b/examples/data/scripts/util/dmenu.sh index 1bac6e9..da61cae 100644 --- a/examples/data/scripts/util/dmenu.sh +++ b/examples/data/scripts/util/dmenu.sh @@ -67,7 +67,7 @@ if dmenu --help 2>&1 | grep -q '\[-xs\]'; then fi # Detect the vertical patch -if dmenu --help 2>&1 | grep -q '\[-l lines\]'; then +if dmenu --help 2>&1 | grep -q '\[-l <\?lines>\?\]'; then # Default to 10 lines if [ -z "$DMENU_LINES" ]; then DMENU_LINES=10 -- cgit v1.2.3