Skip to content

Commit

Permalink
escape
Browse files Browse the repository at this point in the history
deploy
  • Loading branch information
trueberryless committed Nov 24, 2024
1 parent ba4b184 commit 96ae6bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,10 @@ jobs:
# Read the contents of the second file, focusing on the License section
src_license=$(awk '/## License/,EOF' "../$src_file" | tail -n +2)
escaped_src_license=$(echo "$LICENSE_CONTENT" | sed 's/[&/\]/\\&/g')
# Combine content, replace the License section from file1 with the new License content from file2
combination=$(echo "$dest_content" | sed "/## License/ {n; s/.*/$src_license/}")
combination=$(echo "$dest_content" | sed "/## License/ {n; s/.*/$escaped_src_license/}")
# Output the combined content to a new file
echo "$combination" > "$dest_file"
Expand Down

0 comments on commit 96ae6bb

Please sign in to comment.