mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-16 07:13: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:
@@ -87,7 +87,7 @@ OUT
|
||||
if [[ \$1 == "-S"* ]]; then
|
||||
found="\$(PATH="\${RUBYPATH:-\$PATH}" which \$2)"
|
||||
# assert that the found executable has ruby for shebang
|
||||
if head -1 "\$found" | grep ruby >/dev/null; then
|
||||
if head -n1 "\$found" | grep ruby >/dev/null; then
|
||||
\$BASH "\$found"
|
||||
else
|
||||
echo "ruby: no Ruby script found in input (LoadError)" >&2
|
||||
|
||||
Reference in New Issue
Block a user