From b456be43034d360a2ec2c908383d8c79811f5b5c Mon Sep 17 00:00:00 2001 From: Ansh Mittal Date: Tue, 13 Apr 2021 19:41:36 +0530 Subject: [PATCH] drive: don't open browser when service account... credentials specified Fixes #5104 --- backend/drive/drive.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/drive/drive.go b/backend/drive/drive.go index e634f1954..5f20ebabe 100755 --- a/backend/drive/drive.go +++ b/backend/drive/drive.go @@ -199,7 +199,7 @@ func init() { m.Set("root_folder_id", "appDataFolder") } - if opt.ServiceAccountFile == "" { + if opt.ServiceAccountFile == "" && opt.ServiceAccountCredentials == "" { err = oauthutil.Config(ctx, "drive", name, m, driveConfig, nil) if err != nil { log.Fatalf("Failed to configure token: %v", err)