mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-11-27 18:11:20 +00:00
One more fix #254
This commit is contained in:
parent
f60754d9d4
commit
b2db6a4b0a
|
|
@ -194,14 +194,8 @@ namespace WelsonJS.Launcher
|
|||
{
|
||||
int exitCode = -1;
|
||||
|
||||
string fileName = execFilePath;
|
||||
string adjustedArguments = arguments;
|
||||
|
||||
if (useCmd && !String.IsNullOrEmpty(workingDirectory))
|
||||
{
|
||||
fileName = "cmd.exe";
|
||||
adjustedArguments = $"/c cd /d \"{workingDirectory}\" && \"{execFilePath}\" {arguments}";
|
||||
}
|
||||
string fileName = useCmd ? "cmd.exe" : execFilePath;
|
||||
string adjustedArguments = useCmd ? $"/c \"{execFilePath}\" {arguments}" : arguments;
|
||||
|
||||
var psi = new ProcessStartInfo
|
||||
{
|
||||
|
|
@ -222,13 +216,9 @@ namespace WelsonJS.Launcher
|
|||
}
|
||||
|
||||
if (exitCode != 0)
|
||||
{
|
||||
Trace.TraceWarning($"{fileName} exit with code {exitCode}");
|
||||
}
|
||||
else
|
||||
{
|
||||
Trace.TraceInformation($"{fileName} finished successfully");
|
||||
}
|
||||
|
||||
return exitCode == 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user