* auto-update: use backup directory format without version: "agh-backup"

This commit is contained in:
Simon Zolin 2019-06-27 15:23:16 +03:00
parent f1e6a30931
commit bdc9a0b906
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ func getUpdateInfo(jsonData []byte) (*updateInfo, error) {
}
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)
if len(pkgFileName) == 0 {