Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #18 from nuomiaa/master
Browse files Browse the repository at this point in the history
修正 字符错误
  • Loading branch information
YuMao233 authored Mar 17, 2022
2 parents 72fcf08 + ad6ef56 commit e9714ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/entity/commands/general/general _start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default class GeneralStartCommand extends InstanceCommand {
// 命令解析
const commandList = commandStringToArray(instance.config.startCommand);
const commandExeFile = commandList[0];
const commnadParameters = commandList.slice(1);
const commandParameters = commandList.slice(1);
if (commandList.length === 0) {
return instance.failure(new StartupError("无法启动实例,启动命令为空"));
}
Expand All @@ -105,7 +105,7 @@ export default class GeneralStartCommand extends InstanceCommand {

// 创建子进程
// 参数1直接传进程名或路径(含空格),无需双引号
const process = spawn(commandExeFile, commnadParameters, {
const process = spawn(commandExeFile, commandParameters, {
cwd: instance.config.cwd,
stdio: "pipe",
windowsHide: true
Expand All @@ -124,7 +124,7 @@ ${instance.config.startCommand}
启动命令解析体:
程序:${commandExeFile}
参数:${JSON.stringify(commnadParameters)}
参数:${JSON.stringify(commandParameters)}
请将此信息报告给管理员,技术人员或自行排查故障。
`
Expand Down

0 comments on commit e9714ba

Please sign in to comment.