Remove version information from moved file

Otherwise the file is being picked up by the update registry scan.
This commit is contained in:
Daniel 2020-05-22 22:36:41 +02:00
parent 8a0edd9472
commit 99a494db6e

View file

@ -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,
),