From c114695a66d0d3047f99f431dfd078717ec694c1 Mon Sep 17 00:00:00 2001 From: buengese Date: Tue, 6 Apr 2021 22:25:01 +0200 Subject: [PATCH] zoho: do not ask for mountpoint twice when using headless setup --- backend/zoho/zoho.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/zoho/zoho.go b/backend/zoho/zoho.go index 1774335b5..b585e9ae6 100644 --- a/backend/zoho/zoho.go +++ b/backend/zoho/zoho.go @@ -96,6 +96,11 @@ func init() { log.Fatalf("Failed to configure token: %v", err) } } + + if fs.GetConfig(ctx).AutoConfirm { + return + } + if err = setupRoot(ctx, name, m); err != nil { log.Fatalf("Failed to configure root directory: %v", err) }