Permalink
Browse files

The exit code from PowerShell was not being used as the exit code fro…

…m the CMD script. This update fixes that so that the CMD script will exit with the same code that the PowerShell script exited with.
  • Loading branch information...
1 parent fff5f6f commit 68fe0e6808a7e75be90740abfefedda9a1ddb107 @jpoehls jpoehls committed with May 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 psake.cmd
View
@@ -5,7 +5,7 @@ if '%1'=='-help' goto help
if '%1'=='-h' goto help
powershell -NoProfile -ExecutionPolicy Bypass -Command "& '%~dp0\psake.ps1' %*; if ($psake.build_success -eq $false) { exit 1 } else { exit 0 }"
-goto :eof
+exit /B %errorlevel%
:help
powershell -NoProfile -ExecutionPolicy Bypass -Command "& '%~dp0\psake.ps1' -help"

0 comments on commit 68fe0e6

Please sign in to comment.