Commit d22df9b8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

get_help: fix for support any command script

parent 619658c2
......@@ -162,7 +162,7 @@ set_sudo()
# print options description from HELPCMD/HELPOPT lines in the code
get_help()
{
grep "# $1" $PROGDIR/epm | while read n ; do
grep "# $1" $0 | while read n ; do
opt=$(echo $n | sed -e "s|) # $1:.*||g")
desc=$(echo $n | sed -e "s|.*) # $1:||g")
printf " %-20s %s\n" $opt "$desc"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment