forked from goffee/goffee
rewrite
This commit is contained in:
parent
c97afa7564
commit
7f4e3c39da
4 changed files with 44 additions and 9 deletions
|
|
@ -38,7 +38,7 @@ type RepoMeta struct {
|
|||
}
|
||||
|
||||
// Config file
|
||||
const CONFIG_URL string = "https://raw.githubusercontent.com/gocondor/gaffer/main/config.json"
|
||||
const CONFIG_URL string = "https://git.smarteching.com/goffee/goffee/raw/branch/main/config.json"
|
||||
|
||||
const REPO_URL string = "https://git.smarteching.com/goffee/goffee/cup/releases/latest"
|
||||
|
||||
|
|
@ -165,7 +165,7 @@ func (cn *CmdNew) DownloadGoCondor(http *http.Client, url string, tempName strin
|
|||
tempFilePath := os.TempDir() + "/" + tempName
|
||||
response, err := http.Get(url)
|
||||
if err != nil {
|
||||
fmt.Println("error downloading the GoCondor release")
|
||||
fmt.Println("error downloading the Cup release")
|
||||
os.Exit(1)
|
||||
}
|
||||
defer response.Body.Close()
|
||||
|
|
@ -179,7 +179,7 @@ func (cn *CmdNew) DownloadGoCondor(http *http.Client, url string, tempName strin
|
|||
|
||||
_, err = io.Copy(file, response.Body)
|
||||
if err != nil {
|
||||
fmt.Println("error writing the GoCondor release to file")
|
||||
fmt.Println("error writing the Cup release to file")
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue