mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-16 15:23:53 -05:00
Supply head -n flag explicitly
The syntax `head -NUM` was deprecated in the POSIX standard. https://pubs.opengroup.org/onlinepubs/9699919799/utilities/head.html
This commit is contained in:
@@ -43,7 +43,7 @@ extract_initial_comment_block() {
|
||||
|
||||
collect_documentation() {
|
||||
local awk
|
||||
awk="$(type -p gawk awk 2>/dev/null | head -1)"
|
||||
awk="$(type -p gawk awk 2>/dev/null | head -n1)"
|
||||
if [ -z "$awk" ]; then
|
||||
echo "rbenv: cannot find awk" >&2
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user