We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ecbd29 commit c39b691Copy full SHA for c39b691
.github/workflows/deploy.yml
@@ -289,7 +289,12 @@ jobs:
289
else
290
bucket="${bucket}-staging"
291
fi
292
+
293
echo "Syncing $source to s3://$bucket/$dest/ with options: $options"
- # Use eval to correctly handle the options string with its quotes
294
- eval "aws s3 sync '$source/' 's3://$bucket/$dest/' $options"
295
+ # Read the options string into an array to handle arguments with spaces correctly.
296
+ read -r -a options_array <<< "$options"
297
298
+ # Sync to S3, expanding the options array
299
+ aws s3 sync "$source/" "s3://$bucket/$dest/" "${options_array[@]}"
300
done
0 commit comments