Skip to content

Commit c39b691

Browse files
committed
Fix s3 options
1 parent 8ecbd29 commit c39b691

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,12 @@ jobs:
289289
else
290290
bucket="${bucket}-staging"
291291
fi
292+
292293
echo "Syncing $source to s3://$bucket/$dest/ with options: $options"
293-
# Use eval to correctly handle the options string with its quotes
294-
eval "aws s3 sync '$source/' 's3://$bucket/$dest/' $options"
294+
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[@]}"
295300
done

0 commit comments

Comments
 (0)