summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/menuscripts/mhelp5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/menuscripts/mhelp b/bin/menuscripts/mhelp
index a9027ef..e03222b 100755
--- a/bin/menuscripts/mhelp
+++ b/bin/menuscripts/mhelp
@@ -14,17 +14,18 @@ else
menucmd="fzf"
fi
-test -z "${program}" && exit 1
+test -z "$program" && exit 1
if $program --help > "$OPTIONS"
then
- option="$(grep -E "^ *-[-a-Z]* " "$OPTIONS" |
+ option="$(grep "^ *-[-a-zA-Z0-9]* " "$OPTIONS" |
tr -s ' ' |
sort |
uniq |
column -l 2 -t |
$menucmd |
awk '{print $1}')"
+fi
test -z "$option" && exit 1