Commit 75cf106
fix(path): only replace $ with env var if value defined (sindrets#557)
Only expand environment variables in paths when the variable is actually
defined. Previously, undefined variables would be replaced with their
literal name (e.g., $FOO -> FOO), which could cause unexpected behaviour
with paths containing dollar signs.
Fixes sindrets#5561 parent 3990835 commit 75cf106
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
299 | | - | |
| 298 | + | |
| 299 | + | |
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| |||
0 commit comments