Commit 376107e
fix: replace eval with associative array in quota_check.sh
Replace unsafe eval-based dynamic variable names with a declare -A
associative array keyed by 'region:index'. This eliminates potential
code-injection risks from eval and improves script maintainability.
Addresses Copilot review comments on PR microsoft#131 (lines 191, 216, 226, 294
of scripts/quota_check.sh).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 9c8071b commit 376107e
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
| |||
213 | 214 | | |
214 | 215 | | |
215 | 216 | | |
216 | | - | |
| 217 | + | |
217 | 218 | | |
218 | 219 | | |
219 | 220 | | |
| |||
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
226 | | - | |
| 227 | + | |
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
| |||
291 | 292 | | |
292 | 293 | | |
293 | 294 | | |
294 | | - | |
| 295 | + | |
295 | 296 | | |
296 | 297 | | |
297 | 298 | | |
| |||
0 commit comments