mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Fix random "broken pipe"
This commit is contained in:
parent
6882be06a6
commit
e28661c7e2
1 changed files with 3 additions and 2 deletions
|
@ -44,8 +44,9 @@ extract_initial_comment_block() {
|
||||||
}
|
}
|
||||||
|
|
||||||
collect_documentation() {
|
collect_documentation() {
|
||||||
# shellcheck disable=SC2016
|
# `tail` prevents "broken pipe" errors due to `head` closing thge pipe without reading everything
|
||||||
$(type -P gawk awk | head -1) '
|
# https://superuser.com/questions/554855/how-can-i-fix-a-broken-pipe-error/642932#642932
|
||||||
|
$(type -P gawk awk | tail -n +1 | head -1) '
|
||||||
/^Summary:/ {
|
/^Summary:/ {
|
||||||
summary = substr($0, 10)
|
summary = substr($0, 10)
|
||||||
next
|
next
|
||||||
|
|
Loading…
Reference in a new issue