File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -204,6 +204,18 @@ describe("argv helpers", () => {
204204 rawArgs : [ "/usr/bin/node-22.2.0" , "openclaw" , "status" ] ,
205205 expected : [ "/usr/bin/node-22.2.0" , "openclaw" , "status" ] ,
206206 } ,
207+ {
208+ rawArgs : [ "node24" , "openclaw" , "status" ] ,
209+ expected : [ "node24" , "openclaw" , "status" ] ,
210+ } ,
211+ {
212+ rawArgs : [ "/usr/bin/node24" , "openclaw" , "status" ] ,
213+ expected : [ "/usr/bin/node24" , "openclaw" , "status" ] ,
214+ } ,
215+ {
216+ rawArgs : [ "node24.exe" , "openclaw" , "status" ] ,
217+ expected : [ "node24.exe" , "openclaw" , "status" ] ,
218+ } ,
207219 {
208220 rawArgs : [ "nodejs" , "openclaw" , "status" ] ,
209221 expected : [ "nodejs" , "openclaw" , "status" ] ,
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ export function buildParseArgv(params: {
172172 return [ "node" , programName || "openclaw" , ...normalizedArgv ] ;
173173}
174174
175- const nodeExecutablePattern = / ^ n o d e - \d + (?: \. \d + ) * (?: \. e x e ) ? $ / ;
175+ const nodeExecutablePattern = / ^ n o d e (?: - \d + | \d + ) (?: \. \d + ) * (?: \. e x e ) ? $ / ;
176176
177177function isNodeExecutable ( executable : string ) : boolean {
178178 return (
You can’t perform that action at this time.
0 commit comments