mirror of
https://github.com/taigrr/go-selfupdate
synced 2025-01-18 04:33:12 -08:00
Removed exit when no release is found incase certain os/arch types dont have older versions
This commit is contained in:
parent
555c7158cf
commit
0bcff3c955
4
main.go
4
main.go
@ -107,8 +107,8 @@ func main() {
|
|||||||
fName := filepath.Join(genDir, file.Name(), plat+".gz")
|
fName := filepath.Join(genDir, file.Name(), plat+".gz")
|
||||||
old, err := os.Open(fName)
|
old, err := os.Open(fName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "Can't open %s: error: %s\n", fName, err)
|
// Don't have an old release for this os/arch, continue on
|
||||||
os.Exit(1)
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
fName = filepath.Join(genDir, version, plat+".gz")
|
fName = filepath.Join(genDir, version, plat+".gz")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user