Update data directory checking condition.

This commit is contained in:
takezoe
2014-01-12 16:47:23 +09:00
parent 3ff39ec578
commit 897f2ea6dd

View File

@@ -19,7 +19,7 @@ object Directory {
// Move HOME/gitbucket to HOME/.gitbucket
val oldHome = new File(System.getProperty("user.home"), "gitbucket")
val newHome = new File(System.getProperty("user.home"), ".gitbucket")
if(oldHome.exists && oldHome.isDirectory && new File(oldHome, "data").exists){
if(oldHome.exists && oldHome.isDirectory && new File(oldHome, "version").exists){
oldHome.renameTo(newHome)
}
newHome