Skip to content

Commit 9f14ebf

Browse files
committed
Fix exit code return (powershell script not correct)
1 parent cfaa01e commit 9f14ebf

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/dotnet/Cljr/Program.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,8 @@ static int Main(string[] args)
467467

468468
process.Start();
469469
process.WaitForExit();
470-
return process.ExitCode;
470+
if (process.ExitCode != 0)
471+
Environment.Exit(process.ExitCode);
471472
}
472473
else
473474
{
@@ -515,7 +516,8 @@ static int Main(string[] args)
515516

516517
process.Start();
517518
process.WaitForExit();
518-
return process.ExitCode;
519+
if ( process.ExitCode != 0 )
520+
Environment.Exit(process.ExitCode);
519521
}
520522
}
521523

src/dotnet/Cljr/Properties/launchSettings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"profiles": {
33
"Cljr": {
44
"commandName": "Project",
5-
"commandLineArgs": "-T:deps tree"
5+
"commandLineArgs": "-X:test",
6+
"workingDirectory": "C:\\work\\temp\\testretcode"
67
}
78
}
89
}
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
clojure.main @args
1+
clojure.main @args ; exit $LASTEXITCODE

0 commit comments

Comments
 (0)