Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[cli] Prevent unsupported Locker exports (#12396)

Aman Raj34b9526afbc1
diff --git a/cli/internal/promt.go b/cli/internal/promt.go
index 9c824fbb39..3feacdac3d 100644
--- a/cli/internal/promt.go
+++ b/cli/internal/promt.go
@@ -51,7 +51,7 @@ func WaitForEnter(prompt string) error {
func GetAppType() api.App {
for {
- app, err := GetUserInput("Enter app type (default: photos)")
+ app, err := GetUserInput("Enter app type (photos/auth; default: photos)")
if err != nil {
fmt.Printf("Use default app type: %s\n", api.AppPhotos)
return api.AppPhotos
@@ -61,8 +61,6 @@ func GetAppType() api.App {
return api.AppPhotos
case "auth":
return api.AppAuth
- case "locker":
- return api.AppLocker
case "":
return api.AppPhotos
default:
diff --git a/cli/pkg/sync.go b/cli/pkg/sync.go
index 342207bf7b..566c2737ef 100644
--- a/cli/pkg/sync.go
+++ b/cli/pkg/sync.go
@@ -28,6 +28,10 @@ func (c *ClICtrl) Export(filter model.Filter) error {
log.Printf("Skip account %s: account is excluded by filter", account.Email)
continue
}
+ if account.App == api.AppLocker {
+ log.Printf("Skip account %s: Locker export is not supported", account.Email)
+ continue
+ }
if account.ExportDir == "" {
log.Printf("Skip account %s: no export directory configured", account.Email)
continue