mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-11 13:03:46 -05:00
Don't bother reading empty version files
This commit is contained in:
@@ -5,7 +5,7 @@ set -e
|
|||||||
|
|
||||||
VERSION_FILE="$1"
|
VERSION_FILE="$1"
|
||||||
|
|
||||||
if [ -e "$VERSION_FILE" ]; then
|
if [ -s "$VERSION_FILE" ]; then
|
||||||
# Read the first word from the specified version file. Avoid reading it whole.
|
# Read the first word from the specified version file. Avoid reading it whole.
|
||||||
IFS="${IFS}"$'\r'
|
IFS="${IFS}"$'\r'
|
||||||
words=( $(cut -b 1-1024 "$VERSION_FILE") )
|
words=( $(cut -b 1-1024 "$VERSION_FILE") )
|
||||||
|
|||||||
Reference in New Issue
Block a user