Commit 49d573a
authored
Fix openOCDRulesPath in addOpenOcdRules.ts (#1685)
On Linux, `dirname(modifiedEnv.OPENOCD_SCRIPTS)` returns `~/.espressif/tools/openocd-esp32/${openocd-esp32-version}/openocd-esp32/share/openocd`.
Therefore, the parameter `".."` passed to the `resolve` function makes it return `~/.espressif/tools/openocd-esp32/${openocd-esp32-version}/openocd-esp32/share/contrib/60-openocd.rules`, which missing the `openocd` part between `share` and `contrib`.
At the end of the configuration, the message that prompt the user to add OpenOCD rules in `/etc/udev/rules.d` become an error instead: `"~/.espressif/tools/openocd-esp32/${openocd-esp32-version}/openocd-esp32/share/contrib/60-openocd.rules doesn't exists."`
Fix this issue by removing the `".."` parameter.1 parent d76fa81 commit 49d573a
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| |||
0 commit comments