mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-10 15:35:59 +01:00
@@ -98,7 +98,7 @@ object AutoUpdate {
|
|||||||
*/
|
*/
|
||||||
def getCurrentVersion(): Version = {
|
def getCurrentVersion(): Version = {
|
||||||
if(versionFile.exists){
|
if(versionFile.exists){
|
||||||
FileUtils.readFileToString(versionFile, "UTF-8").split("\\.") match {
|
FileUtils.readFileToString(versionFile, "UTF-8").trim.split("\\.") match {
|
||||||
case Array(majorVersion, minorVersion) => {
|
case Array(majorVersion, minorVersion) => {
|
||||||
versions.find { v =>
|
versions.find { v =>
|
||||||
v.majorVersion == majorVersion.toInt && v.minorVersion == minorVersion.toInt
|
v.majorVersion == majorVersion.toInt && v.minorVersion == minorVersion.toInt
|
||||||
|
|||||||
Reference in New Issue
Block a user