From c01cbb97074d5aac521a145174ae79705d654e1a Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 28 Apr 2023 09:01:48 +0200 Subject: fixed missing 'fi' --- bin/menuscripts/mhelp | 5 +++-- 1 file 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 -- cgit v1.2.3