* auto-update: use backup directory format without version: "agh-backup"
This commit is contained in:
parent
f1e6a30931
commit
bdc9a0b906
|
@ -150,7 +150,7 @@ func getUpdateInfo(jsonData []byte) (*updateInfo, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
u.updateDir = filepath.Join(workDir, fmt.Sprintf("agh-update-%s", u.newVer))
|
u.updateDir = filepath.Join(workDir, fmt.Sprintf("agh-update-%s", u.newVer))
|
||||||
u.backupDir = filepath.Join(workDir, fmt.Sprintf("agh-backup-%s", versionString))
|
u.backupDir = filepath.Join(workDir, "agh-backup")
|
||||||
|
|
||||||
_, pkgFileName := filepath.Split(u.pkgURL)
|
_, pkgFileName := filepath.Split(u.pkgURL)
|
||||||
if len(pkgFileName) == 0 {
|
if len(pkgFileName) == 0 {
|
||||||
|
|
Loading…
Reference in New Issue