This repository was archived by the owner on Nov 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/entity/commands/general Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ export default class GeneralStartCommand extends InstanceCommand {
9191 // 命令解析
9292 const commandList = commandStringToArray ( instance . config . startCommand ) ;
9393 const commandExeFile = commandList [ 0 ] ;
94- const commnadParameters = commandList . slice ( 1 ) ;
94+ const commandParameters = commandList . slice ( 1 ) ;
9595 if ( commandList . length === 0 ) {
9696 return instance . failure ( new StartupError ( "无法启动实例,启动命令为空" ) ) ;
9797 }
@@ -105,7 +105,7 @@ export default class GeneralStartCommand extends InstanceCommand {
105105
106106 // 创建子进程
107107 // 参数1直接传进程名或路径(含空格),无需双引号
108- const process = spawn ( commandExeFile , commnadParameters , {
108+ const process = spawn ( commandExeFile , commandParameters , {
109109 cwd : instance . config . cwd ,
110110 stdio : "pipe" ,
111111 windowsHide : true
@@ -124,7 +124,7 @@ ${instance.config.startCommand}
124124
125125启动命令解析体:
126126程序:${ commandExeFile }
127- 参数:${ JSON . stringify ( commnadParameters ) }
127+ 参数:${ JSON . stringify ( commandParameters ) }
128128
129129请将此信息报告给管理员,技术人员或自行排查故障。
130130`
You can’t perform that action at this time.
0 commit comments