Skip to content

Commit

Permalink
fix: mc cp the file to directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jim60105 authored Jul 30, 2023
1 parent e2d6dd1 commit f88a27f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s3-uploader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ echo "Uploading files..."

# Upload files matching the search filter to S3 storage using the MinIO Client (mc)
while IFS= read -r file_path; do
mc cp "$file_path" "mys3/$DESTINATION_BUCKET/$DESTINATION_DIRECTORY"
mc cp "$file_path" "mys3/$DESTINATION_BUCKET/$DESTINATION_DIRECTORY/"
done <temp.txt

# Delete the uploaded files
Expand Down

0 comments on commit f88a27f

Please sign in to comment.