Skip to content

Commit

Permalink
fix aws cp sample for file
Browse files Browse the repository at this point in the history
  • Loading branch information
fiskus committed Jun 20, 2023
1 parent 09ade24 commit e054caf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion catalog/app/containers/Bucket/CodeSamples/Dir.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ const TEMPLATES = {
`,
CLI_DOWNLOAD: (bucket: string, path: string, dest: string) => {
const cliDest = dest ? `"./${dest}"` : '.'
const recursiveFlag = dest ? ` --recursive` : ''
return dedent`
# Download [[https://docs.aws.amazon.com/cli/latest/reference/s3/cp.html]]
aws s3 cp --recursive "s3://${bucket}/${path}" ${cliDest}
aws s3 cp${recursiveFlag} "s3://${bucket}/${path}" ${cliDest}
`
},
}
Expand Down

0 comments on commit e054caf

Please sign in to comment.