Ver Fonte

docs:upload --rclone

https://rclone.org/s3/#s3-no-check-bucket

> `--s3-no-check-bucket`
> If set, don't attempt to check the bucket exists or create it.
> It can also be needed if the user you are using does not have bucket creation permissions.
Simon Legner há 1 mês atrás
pai
commit
85f519ec03
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      lib/tasks/docs.thor

+ 1 - 1
lib/tasks/docs.thor

@@ -210,7 +210,7 @@ class DocsCLI < Thor
       cmd << ' --dryrun' if options[:dryrun]
       if options[:rclone]
         puts "[S3 bundle] Uploading #{filename} using rclone..."
-        cmd = "rclone copy #{File.join(Docs.store_path, filename)} devdocs:devdocs-downloads/"
+        cmd = "rclone copy #{File.join(Docs.store_path, filename)} devdocs:devdocs-downloads/ --s3-no-check-bucket"
         cmd << ' --dry-run' if options[:dryrun]
       end
       system(cmd)