mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-14 06:13:53 -05:00
Fix rbenv-version-file-read for version files without trailing newlines
This commit is contained in:
@@ -12,7 +12,7 @@ if [ -e "$VERSION_FILE" ]; then
|
||||
echo "$version"
|
||||
break
|
||||
fi
|
||||
done < "$VERSION_FILE"
|
||||
done < <( cat "$VERSION_FILE" && echo )
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user