Skip to content

Commit

Permalink
fix uploadLogView() to upload to r2 instead of backblaze
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Oct 31, 2024
1 parent 392dbee commit 41a1d8e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions do/upload_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,9 +527,12 @@ func uploadLogView() {
logf("uploadLogView\n")
ver := extractLogViewVersion()
path := filepath.Join("tools", "logview", "build", "bin", "logview.exe")
panicIf(!fileExists(path), "file '%s' doesn't exist", path)
remotePath := "software/logview/rel/" + fmt.Sprintf("logview-%s.exe", ver)
mc := newMinioBackblazeClient()
if !fileExists(path) {
logf("file '%s' doesn't exist\n", path)
os.Exit(1)
}
remotePath := fmt.Sprintf("software/logview/rel/logview-%s.exe", ver)
mc := newMinioR2Client()
if mc.Exists(remotePath) {
logf("%s (%s) already uploaded\n", remotePath, mc.URLForPath(remotePath))
return
Expand Down

0 comments on commit 41a1d8e

Please sign in to comment.