From 41a1d8edd5e4cec7ad14fba3696caa52f1f5ec78 Mon Sep 17 00:00:00 2001 From: Krzysztof Kowalczyk Date: Thu, 31 Oct 2024 16:37:12 +0100 Subject: [PATCH] fix uploadLogView() to upload to r2 instead of backblaze --- do/upload_storage.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/do/upload_storage.go b/do/upload_storage.go index 77a4e01f1ce..b1fb78b010f 100644 --- a/do/upload_storage.go +++ b/do/upload_storage.go @@ -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