File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ var AsciinemaInstaller = &installer.Installer{
99
99
},
100
100
DUrlDecorator : installer .DefaultDecorator ,
101
101
StoreMultiVersions : true ,
102
+ ForceReDownload : true ,
102
103
HomePage : "https://github.com/gvcgo/asciinema" ,
103
104
}
104
105
@@ -812,6 +813,7 @@ var UPXInstaller = &installer.Installer{
812
813
},
813
814
DUrlDecorator : installer .DefaultDecorator ,
814
815
StoreMultiVersions : true ,
816
+ ForceReDownload : true ,
815
817
HomePage : "https://github.com/upx/upx" ,
816
818
}
817
819
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ func IsFile(path string) bool {
21
21
}
22
22
23
23
func SymbolicLink (oldname , newname string ) error {
24
+ if ok , _ := gutils .PathIsExist (newname ); ok {
25
+ os .RemoveAll (newname )
26
+ }
24
27
err := os .Symlink (oldname , newname )
25
28
if runtime .GOOS == gutils .Windows {
26
29
// Hardlink for windows files. Hardlink for windows in the same disk partion is supported.
You can’t perform that action at this time.
0 commit comments