Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit e9714ba

Browse files
authored
Merge pull request #18 from nuomiaa/master
修正 字符错误
2 parents 72fcf08 + ad6ef56 commit e9714ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/entity/commands/general/general _start.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
`

0 commit comments

Comments
 (0)