Merge pull request #581 from LawnGnome/solaris-gawk

Prefer gawk over awk if both are available.

Fixes rbenv-help on Solaris 11.1
This commit is contained in:
Mislav Marohnić 2014-04-19 15:29:31 +02:00
commit fe0b2436b8

View file

@ -36,7 +36,7 @@ extract_initial_comment_block() {
} }
collect_documentation() { collect_documentation() {
awk ' $(type -p gawk awk | head -1) '
/^Summary:/ { /^Summary:/ {
summary = substr($0, 10) summary = substr($0, 10)
next next