Skip to content

Commit

Permalink
fix: skip recreating aqua.exe when aqua-proxy is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Jul 16, 2024
1 parent 94f3561 commit c04056f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/installpackage/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ func (is *Installer) recreateHardLinks() error {
a := filepath.Join(pkgPath, "aqua-proxy.exe")

for _, info := range infos {
if info.Name() == "aqua.exe" {
continue
}
p := filepath.Join(binDir, info.Name())
if err := is.fs.Remove(p); err != nil {
return fmt.Errorf("remove a file to replace it with a hard link: %w", err)
Expand Down

0 comments on commit c04056f

Please sign in to comment.