~welt/murse

789510ac5f4d4142fdee7f4a937b4bc36b3a58cb — welt 2 years ago ab61e4e + d0eeacf
Merge branch 'removeall-del-fix'
3 files changed, 4 insertions(+), 4 deletions(-)

M const.go
M upgrade.go
M verify.go
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