Remove version information from moved file
Otherwise the file is being picked up by the update registry scan.
This commit is contained in:
@@ -192,7 +192,7 @@ func upgradeFile(fileToUpgrade string, file *updater.File) error {
|
||||
registry.TmpDir().Path,
|
||||
fmt.Sprintf(
|
||||
"%s-%d%s",
|
||||
updater.GetVersionedPath(filepath.Base(fileToUpgrade), currentVersion),
|
||||
filepath.Base(fileToUpgrade),
|
||||
time.Now().UTC().Unix(),
|
||||
upgradedSuffix,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user