1
1
Fork 0
mirror of https://github.com/tonydamage/nux-env.git synced 2025-12-11 13:24:28 +01:00

Fixed shelldoc greps

This commit is contained in:
Tony Tkáčik 2023-08-24 11:07:23 +02:00
parent 2caa9bddc3
commit 229825c954

View file

@ -89,7 +89,7 @@ nux.use nuxr/repl
nux.log trace "doc_start" $doc_start $code_start nux.log trace "doc_start" $doc_start $code_start
if [ -n "$doc_start" -a -n "$code_start" ] { if [ -n "$doc_start" -a -n "$code_start" ] {
sed -n "$doc_start,$code_start"p "$script" \ sed -n "$doc_start,$code_start"p "$script" \
| grep "^\#\#" \ | grep "^##" \
| sed -re "s/^#+ ?(.*)/\1/gi" \ | sed -re "s/^#+ ?(.*)/\1/gi" \
| nux.help.shelldoc | nux.help.shelldoc
return 0 return 0