diff options
author | Brendan Taylor <whateley@gmail.com> | 2010-12-01 10:00:51 -0700 |
---|---|---|
committer | Brendan Taylor <whateley@gmail.com> | 2010-12-01 10:00:51 -0700 |
commit | 3722315bbccef62b9bf9bcdb041868f2fcbe7c15 (patch) | |
tree | 019c168264eb662a8df1e7a9a045e62466ee0bc4 /examples/data/scripts/util | |
parent | 0821955f4d3eb4fbaf5eafcf96ca6f094122d0fc (diff) |
dmenu 4.1 and 4.2 have different help messages, support both
Diffstat (limited to 'examples/data/scripts/util')
-rw-r--r-- | examples/data/scripts/util/dmenu.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |