Skip to content

Commit

Permalink
fix: escape \ after doc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
simonseyock committed Jan 17, 2024
1 parent 5201b57 commit 3490fee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion replace-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
file_to_modify="README.md"

# Read the stdin content into a variable
stdin_content=$(cat -)
stdin_content=$(cat - | sed 's/\\/\\\\/g')

# Use awk to replace the content between <!-- AUTOGEN --> with stdin_content
awk -v stdin_content="$stdin_content" '
Expand Down

0 comments on commit 3490fee

Please sign in to comment.