Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
f1d3a158b1
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue