Skip to content

Commit

Permalink
Update upgrade.go
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanisham committed Apr 11, 2024
1 parent c5843e4 commit 9695cf0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ func (z *ZVM) Upgrade() error {
return nil
}

// Replaces one file with another on Windows.
func replaceExe(from, to string) error {
if runtime.GOOS == "windows" {
if err := os.Rename(to, fmt.Sprintf("%s.old", to)); err != nil {
Expand Down

0 comments on commit 9695cf0

Please sign in to comment.