M upgrade.go => upgrade.go +1 -1
@@ 146,7 146,7 @@ func upgradeMain(dir string, url string, threads int, http1 bool, owGameInfo boo
return true
}
- isOF := (filepath.Dir(dir) == "open_fortress")
+ isOF := (filepath.Base(dir) == "open_fortress")
for _, v := range writes {
change := v
M verify.go => verify.go +1 -1
@@ 154,7 154,7 @@ func verifyMain(dir string, url string, repair bool, http1 bool, owGameInfo bool
return 1
}
- isOF := (filepath.Dir(absPath) == "open_fortress")
+ isOF := (filepath.Base(absPath) == "open_fortress")
for _, change := range writes {
path, err := resolvePath(dir, change.Path)