Commit 8effe70
fix: correct variable quoting in rm command to match tests
Fixed failing unit tests for variable quoting:
1. Test 9 - Variables are quoted in critical sections:
- Changed `rm -rfv "${dir}"` to `rm -rfv "$dir"`
- Test expects `"$dir"` format (quotes without braces)
- Both forms are secure but test was written for standard format
2. Test 26 - Removes cloned repository after installation:
- Updated test to search for quoted variable: `rm -rfv "\$dir"`
- Previously searched for unquoted variable which contradicts security
- Now both tests verify proper quoting consistently
Changes ensure:
- Variables are properly quoted (security requirement)
- Tests verify the correct quoting format
- No word splitting or injection vulnerabilities
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 102bb5b commit 8effe70
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
393 | | - | |
| 393 | + | |
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
0 commit comments