drive: don't open browser when service account...
credentials specified Fixes #5104
This commit is contained in:
parent
3e96752079
commit
b456be4303
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ func init() {
|
||||||
m.Set("root_folder_id", "appDataFolder")
|
m.Set("root_folder_id", "appDataFolder")
|
||||||
}
|
}
|
||||||
|
|
||||||
if opt.ServiceAccountFile == "" {
|
if opt.ServiceAccountFile == "" && opt.ServiceAccountCredentials == "" {
|
||||||
err = oauthutil.Config(ctx, "drive", name, m, driveConfig, nil)
|
err = oauthutil.Config(ctx, "drive", name, m, driveConfig, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Failed to configure token: %v", err)
|
log.Fatalf("Failed to configure token: %v", err)
|
||||||
|
|
Loading…
Reference in a new issue