Fix exc command

This commit is contained in:
Stone_Red
2022-11-17 14:07:11 +01:00
parent 9d22381085
commit ef1f731adc
@@ -62,6 +62,8 @@ namespace YesNt.Interpreter.Statements
private void StartProcess(string name, string args) private void StartProcess(string name, string args)
{ {
RuntimeInfo.OutParametersStack.Clear();
FixedProcess process = new FixedProcess FixedProcess process = new FixedProcess
{ {
StartInfo = new ProcessStartInfo() StartInfo = new ProcessStartInfo()
@@ -82,7 +84,7 @@ namespace YesNt.Interpreter.Statements
process.WaitForExit(); process.WaitForExit();
RuntimeInfo.InParametersStack.Clear(); RuntimeInfo.InParametersStack.Clear();
RuntimeInfo.OutParametersStack.Clear();
RuntimeInfo.OutParametersStack.Push(process.ExitCode.ToString()); RuntimeInfo.OutParametersStack.Push(process.ExitCode.ToString());
} }