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

Commit

Permalink
Merge pull request #40 from deadc/fix-double-quotes-remote-to-local
Browse files Browse the repository at this point in the history
fix(cmd/remote-to-local) remote-to-local escaping issue
  • Loading branch information
blackandred authored Nov 27, 2022
2 parents ba72ed5 + 7a7e967 commit 5d0da72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/remote-to-local/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ func NewRestoreCommand() *cobra.Command {
command.Flags().BoolVarP(&noTemplate, "no-template", "", false, "Disables rendering of the rclone configuration file")
command.Flags().StringVarP(&app.srcPath, "src", "s", "./", "Source path on remote storage")
command.Flags().StringVarP(&app.destLocalPath, "dst", "d", "/", "Local target path")
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'")
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'")
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'")
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'")
command.Flags().StringVarP(&app.SchedulerExpression, "schedule", "", "", "Set to a valid crontab-like expression to schedule synchronization periodically")
command.Flags().BoolVarP(&noDelete, "no-delete", "x", true, "Don't delete files in local filesystem (may be dangerous if wrong path specified)")
command.Flags().BoolVarP(&app.forceCleanUp, "force-delete-local-dir", "n", true, "Force delete local files that are not present on remote")
Expand Down

0 comments on commit 5d0da72

Please sign in to comment.