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:
parent
2caa9bddc3
commit
229825c954
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ nux.use nuxr/repl
|
|||
nux.log trace "doc_start" $doc_start $code_start
|
||||
if [ -n "$doc_start" -a -n "$code_start" ] {
|
||||
sed -n "$doc_start,$code_start"p "$script" \
|
||||
| grep "^\#\#" \
|
||||
| grep "^##" \
|
||||
| sed -re "s/^#+ ?(.*)/\1/gi" \
|
||||
| nux.help.shelldoc
|
||||
return 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue