Repository navigation
Commit c51a5af
committed
fix: guard FORCE_NODE_VERSION in the version error path
Installing on the wrong node version dies with "FORCE_NODE_VERSION: unbound
variable" instead of explaining itself. The script runs under set -u and
this is the one place the variable is read bare; the three other reads all
default it.
The lines it never reaches are the ones telling you the override exists and
naming it, so the people who most need that message are the only ones who
cannot see it.
Verified on Windows 11 with node 22 and code-server 4.135.0: before, the
install ends at the unbound variable; after, it prints the version error and
the override instructions, and exits as intended.1 parent 2b2f8b3 commit c51a5af
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
0 commit comments