Skip to content

Commit

Permalink
remove folder first when upgrading
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Mar 11, 2024
1 parent eaa76a4 commit 3f19a35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/global/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ func Upgrade(version string) error {
}

sstBinPath := filepath.Join(homeDir, ".sst", "bin")
os.RemoveAll(sstBinPath)
if err := os.MkdirAll(sstBinPath, os.ModePerm); err != nil {
return err
}
Expand Down

0 comments on commit 3f19a35

Please sign in to comment.