소스 검색

Fix random "broken pipe"

pull/2073/head
Ivan Pozdeev 4 년 전
부모
커밋
e28661c7e2
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. +3
    -2
      libexec/pyenv-help

+ 3
- 2
libexec/pyenv-help 파일 보기

@ -44,8 +44,9 @@ extract_initial_comment_block() {
}
collect_documentation() {
# shellcheck disable=SC2016
$(type -P gawk awk | head -1) '
# `tail` prevents "broken pipe" errors due to `head` closing thge pipe without reading everything
# 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 = substr($0, 10)
next

불러오는 중...
취소
저장