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,
|
registry.TmpDir().Path,
|
||||||
fmt.Sprintf(
|
fmt.Sprintf(
|
||||||
"%s-%d%s",
|
"%s-%d%s",
|
||||||
updater.GetVersionedPath(filepath.Base(fileToUpgrade), currentVersion),
|
filepath.Base(fileToUpgrade),
|
||||||
time.Now().UTC().Unix(),
|
time.Now().UTC().Unix(),
|
||||||
upgradedSuffix,
|
upgradedSuffix,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user