M const.go => const.go +1 -1
@@ 1,6 1,6 @@
package main
-const VERSION = "0.3.0"
+const VERSION = "0.3.2"
const (
DESC_UPGRADE = "Upgrades your game files to the latest version."
M upgrade.go => upgrade.go +1 -1
@@ 80,7 80,7 @@ func upgradeMain(dir string, url string, threads int, http1 bool, owGameInfo boo
return 1
}
- err = os.Remove(path)
+ err = os.RemoveAll(path)
if err != nil && !os.IsNotExist(err) {
errPrintln(err)
return 1
M verify.go => verify.go +2 -2
@@ 45,7 45,7 @@ func verifyMain(dir string, url string, repair bool, http1 bool, owGameInfo bool
return 1
}
- client := NewClient(url, nil)
+ client := NewClient(url, key)
if http1 {
client.DisableHTTP2()
@@ 81,7 81,7 @@ func verifyMain(dir string, url string, repair bool, http1 bool, owGameInfo bool
} else {
errPrintln("EXISTS", change.Path)
if repair {
- err = os.Remove(path)
+ err = os.RemoveAll(path)
if err != nil {
errPrintln(err)
return 1