Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2022-09-20 10:33:12 +08:00
commit f1d3a158b1

View file

@ -90,7 +90,7 @@ func checkDownloadInstallPkg() {
defer checkDownloadInstallPkgLock.Unlock()
downloadPkgURL, checksum, err := getUpdatePkg()
if nil != err {
if nil != err || "" == downloadPkgURL || "" == checksum {
return
}
@ -133,6 +133,10 @@ func getUpdatePkg() (downloadPkgURL, checksum string, err error) {
}
func downloadInstallPkg(pkgURL, checksum string) {
if "" == pkgURL || "" == checksum {
return
}
pkg := path.Base(pkgURL)
savePath := filepath.Join(util.TempDir, "install", pkg)
if gulu.File.IsExist(savePath) {