Skip to content

Commit

Permalink
fix: copy fail for escaping of marker string
Browse files Browse the repository at this point in the history
Co-authored-by: Maksym Vlasov <[email protected]>
  • Loading branch information
tarfu and MaxymVlasov authored Jan 14, 2025
1 parent 9551f05 commit fc53d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/terraform_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function replace_old_markers {
# Determine the appropriate sed command based on the operating system (GNU sed or BSD sed)
sed --version &> /dev/null && SED_CMD=(sed -i) || SED_CMD=(sed -i '')
"${SED_CMD[@]}" -e "s/^${old_insertion_marker_begin}$/${insertion_marker_begin//\//\\/}/" "$file"
"${SED_CMD[@]}" -e "s/^${old_insertion_marker_end}$/${insertion_marker_begin//\//\\/}/" "$file"
"${SED_CMD[@]}" -e "s/^${old_insertion_marker_end}$/${insertion_marker_end//\//\\/}/" "$file"
}

#######################################################################
Expand Down

0 comments on commit fc53d0a

Please sign in to comment.