Skip to content

Commit c188b2f

Browse files
committed
fix
1 parent 62c3973 commit c188b2f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

pkgs/register/register.go

+2
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ var AsciinemaInstaller = &installer.Installer{
9999
},
100100
DUrlDecorator: installer.DefaultDecorator,
101101
StoreMultiVersions: true,
102+
ForceReDownload: true,
102103
HomePage: "https://github.com/gvcgo/asciinema",
103104
}
104105

@@ -812,6 +813,7 @@ var UPXInstaller = &installer.Installer{
812813
},
813814
DUrlDecorator: installer.DefaultDecorator,
814815
StoreMultiVersions: true,
816+
ForceReDownload: true,
815817
HomePage: "https://github.com/upx/upx",
816818
}
817819

pkgs/utils/symlink.go

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ func IsFile(path string) bool {
2121
}
2222

2323
func SymbolicLink(oldname, newname string) error {
24+
if ok, _ := gutils.PathIsExist(newname); ok {
25+
os.RemoveAll(newname)
26+
}
2427
err := os.Symlink(oldname, newname)
2528
if runtime.GOOS == gutils.Windows {
2629
// Hardlink for windows files. Hardlink for windows in the same disk partion is supported.

0 commit comments

Comments
 (0)