mirror of
https://github.com/rclone/rclone.git
synced 2024-11-23 00:43:49 +01:00
drive: don't open browser when service account...
credentials specified Fixes #5104
This commit is contained in:
parent
3e96752079
commit
b456be4303
@ -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 New Issue
Block a user