Commit c433656
committed
fix ENC 'echo' script template to prevent expansion
Currently the template script for creating the 'echo' script used for
ENC data wraps the data provided by the actual ENC in `cat <<-EOF`,
which causes the enclosed data to be variable-expanded, escape
characters (like double backslashes) to be replaced with their
concrete representations, etc.
This breaks things horribly if you have (e.g.) JSON data with
escaped strings (`"C:\\Windows"`), which will be processed and
output without those escapes (`"C:\Windows"`), which is invalid,
and definitely not what the user intended under any circumstance.
Using the 'quoted' variant of shell heredocs (`cat <<-'EOF'`) stops
this expansion.1 parent 5071b97 commit c433656
File tree
2 files changed
+2
-2
lines changed- lib/octocatalog-diff/catalog-util
- spec/octocatalog-diff/tests/catalog-util
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
799 | | - | |
| 799 | + | |
800 | 800 | | |
801 | 801 | | |
802 | 802 | | |
| |||
0 commit comments