Commit bf76c59
authored
fix: use env command for array execution to support inline var assignments (#33)
The autofixer test suite uses act to run the action locally and replaces
npx --yes mobbdev@latest with API_URL=http://... node .../dist/index.mjs
via sed.
Bash arrays don't support inline VAR=value command syntax (the VAR=value
is treated as a command name, not an env var assignment). The env command
handles this correctly, passing the variable to the child process.
This works for both:
- Normal use: env npx --yes mobbdev@latest review ...
- Test override: env API_URL=http://... node .../index.mjs review ...1 parent a12bce4 commit bf76c59
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
0 commit comments