Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
moqsien committed Apr 12, 2024
1 parent 62c3973 commit c188b2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/register/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ var AsciinemaInstaller = &installer.Installer{
},
DUrlDecorator: installer.DefaultDecorator,
StoreMultiVersions: true,
ForceReDownload: true,
HomePage: "https://github.com/gvcgo/asciinema",
}

Expand Down Expand Up @@ -812,6 +813,7 @@ var UPXInstaller = &installer.Installer{
},
DUrlDecorator: installer.DefaultDecorator,
StoreMultiVersions: true,
ForceReDownload: true,
HomePage: "https://github.com/upx/upx",
}

Expand Down
3 changes: 3 additions & 0 deletions pkgs/utils/symlink.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ func IsFile(path string) bool {
}

func SymbolicLink(oldname, newname string) error {
if ok, _ := gutils.PathIsExist(newname); ok {
os.RemoveAll(newname)
}
err := os.Symlink(oldname, newname)
if runtime.GOOS == gutils.Windows {
// Hardlink for windows files. Hardlink for windows in the same disk partion is supported.
Expand Down

0 comments on commit c188b2f

Please sign in to comment.