Skip to content

Commit

Permalink
updater: upd doc
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Nov 5, 2024
1 parent bdb9df9 commit be21493
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/updater/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,7 @@ func (u *Updater) replace() error {
}

if u.goos == "windows" {
// Use copy, since renaming fails with "File in use" error. Also use
// directory permissions for the file, that should be executable.
// Use copy, since renaming fails with "File in use" error.
err = copyFile(u.updateExeName, u.currentExeName, aghos.DefaultPermExe)
} else {
err = os.Rename(u.updateExeName, u.currentExeName)
Expand Down

0 comments on commit be21493

Please sign in to comment.