Skip to content
This repository was archived by the owner on May 10, 2024. It is now read-only.

Commit 5d0da72

Browse files
authored
Merge pull request #40 from deadc/fix-double-quotes-remote-to-local
fix(cmd/remote-to-local) remote-to-local escaping issue
2 parents ba72ed5 + 7a7e967 commit 5d0da72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/remote-to-local/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ func NewRestoreCommand() *cobra.Command {
2929
command.Flags().BoolVarP(&noTemplate, "no-template", "", false, "Disables rendering of the rclone configuration file")
3030
command.Flags().StringVarP(&app.srcPath, "src", "s", "./", "Source path on remote storage")
3131
command.Flags().StringVarP(&app.destLocalPath, "dst", "d", "/", "Local target path")
32-
command.Flags().StringSliceVarP(&app.remoteParams, "param", "p", []string{}, "List of key=value settings for remote e.g. -p 'type=s3' -p 'provider=Minio' -p 'access_key_id=AKIAIOSFODNN7EXAMPLE'")
33-
command.Flags().StringSliceVarP(&app.encryptionParams, "enc-param", "e", []string{}, "List of key=value settings for remote e.g. -p 'remote=remote:testbucket' -p 'password=xxxxxxxx'")
32+
command.Flags().StringArrayVarP(&app.remoteParams, "param", "p", []string{}, "List of key=value settings for remote e.g. -p 'type=s3' -p 'provider=Minio' -p 'access_key_id=AKIAIOSFODNN7EXAMPLE'")
33+
command.Flags().StringArrayVarP(&app.encryptionParams, "enc-param", "e", []string{}, "List of key=value settings for remote e.g. -p 'remote=remote:testbucket' -p 'password=xxxxxxxx'")
3434
command.Flags().StringVarP(&app.SchedulerExpression, "schedule", "", "", "Set to a valid crontab-like expression to schedule synchronization periodically")
3535
command.Flags().BoolVarP(&noDelete, "no-delete", "x", true, "Don't delete files in local filesystem (may be dangerous if wrong path specified)")
3636
command.Flags().BoolVarP(&app.forceCleanUp, "force-delete-local-dir", "n", true, "Force delete local files that are not present on remote")

0 commit comments

Comments
 (0)