Skip to content

Commit

Permalink
fix prepare.go
Browse files Browse the repository at this point in the history
  • Loading branch information
LordCasser committed Jul 12, 2022
1 parent ce249aa commit c3a3b28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/prepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,15 +270,15 @@ func DownloadBinary() {
fmt.Println("no available release version.")
os.Exit(1)
}
log.Println("donwload latest release...")
log.Println("download latest release...")
binaryReq, _ := http.NewRequest("GET", fmt.Sprintf("https://github.com/Tp0t-Team/Tp0tOJ/releases/download/%s/%s", releaseInfo.TagName, binaryName), nil)
binaryReq.Header.Set("Accept-Encoding", "*")
binaryRes, err := client.Do(binaryReq)
if err != nil {
fmt.Println(err)
os.Exit(1)
}
binary, err := os.Create("OJ")
binary, err := os.Create(binaryName)
if err != nil {
fmt.Println(err)
os.Exit(1)
Expand Down

0 comments on commit c3a3b28

Please sign in to comment.