mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
put up a note why version-file-read
is tricky
This commit is contained in:
parent
99551dd1ec
commit
21391c8d2f
1 changed files with 2 additions and 2 deletions
|
@ -5,8 +5,8 @@ set -e
|
|||
VERSION_FILE="$1"
|
||||
|
||||
if [ -e "$VERSION_FILE" ]; then
|
||||
# Read and print the first non-whitespace word from the specified
|
||||
# version file.
|
||||
# Read the first non-whitespace word from the specified version file.
|
||||
# Be careful not to load it whole in case there's something crazy in it.
|
||||
version=""
|
||||
while read -a words; do
|
||||
word="${words[0]}"
|
||||
|
|
Loading…
Reference in a new issue