Commit 8fa06ea
Fix bash issues in osx_cc_wrapper.sh.tpl (#685)
This PR fixes two issues with the `osx_cc_wrapper.sh.tpl` and
`cc_wrapper.sh.tpl` templates:
1. (Both files) The condition for entering the loop to process parameter
files included `-r ${i:1}`, which was checking the loop index value, not
the argument that corresponds to the name of the parameter file. This
was changed to `-r ${!i:1}`.
2. (Only `osx_cc_wrapper.sh.tpl`) The temporary file was being appended
to with the result of `parse_option`, which doesn't return any value,
resulting in the tempfile being empty. This was changed to run
`parse_option "${opt}"` separately from appending the option to the
file, ensuring that the temporary file is being populated with the
sanitized commands.
The first fix addresses the issue of arguments in the param files not
being sanitized, while the second addresses the issue of the sanitized
arguments in the parameter file not being passed through.
---------
Co-authored-by: Trevor Elliott <trevor@stripe.com>1 parent 65be3e9 commit 8fa06ea
2 files changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
| 158 | + | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| |||
0 commit comments