Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 68fe0e6808a7e75be90740abfefedda9a1ddb107 1 parent fff5f6f
Joshua Poehls authored May 24, 2012 lanwin committed January 30, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  psake.cmd
2  psake.cmd
@@ -5,7 +5,7 @@ if '%1'=='-help' goto help
5 5
 if '%1'=='-h' goto help
6 6
 
7 7
 powershell -NoProfile -ExecutionPolicy Bypass -Command "& '%~dp0\psake.ps1' %*; if ($psake.build_success -eq $false) { exit 1 } else { exit 0 }"
8  
-goto :eof
  8
+exit /B %errorlevel%
9 9
 
10 10
 :help
11 11
 powershell -NoProfile -ExecutionPolicy Bypass -Command "& '%~dp0\psake.ps1' -help"

0 notes on commit 68fe0e6

Please sign in to comment.
Something went wrong with that request. Please try again.