diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-28 09:01:48 +0200 | 
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-28 09:01:48 +0200 | 
| commit | c01cbb97074d5aac521a145174ae79705d654e1a (patch) | |
| tree | 285be455d4dc24fc98896a47b9bd8e3b82751d37 /bin | |
| parent | cfca54e503988d4cf390bc9d93c5a477389421ce (diff) | |
fixed missing 'fi'
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/menuscripts/mhelp | 5 | 
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  | 
