mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-02 16:41:16 -05:00
Don't bother reading empty version files
This commit is contained in:
parent
e4f61e67e2
commit
cec6d46792
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ set -e
|
|||
|
||||
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.
|
||||
IFS="${IFS}"$'\r'
|
||||
words=( $(cut -b 1-1024 "$VERSION_FILE") )
|
||||
|
|
Loading…
Reference in a new issue