fix windows scripting when checking LastExitCode

pull/1/head
Brad Rydzewski 5 years ago
parent 95e7648782
commit 792f6cdb88

@ -1,6 +1,10 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.3.1] - 2019-11-01
### Fixed
- check if last exit code greater than 0 in powershell
## [1.3.0] - 2019-10-31
### Fixed
- text overflow for long commit messages

@ -52,5 +52,5 @@ const optionScript = `$erroractionpreference = "stop"`
const traceScript = `
echo %s
%s
if ($LastExitCode -ne 0) { exit $LastExitCode }
if ($LastExitCode -gt 0) { exit $LastExitCode }
`

@ -41,9 +41,9 @@ $erroractionpreference = "stop"
echo "+ go build"
go build
if ($LastExitCode -ne 0) { exit $LastExitCode }
if ($LastExitCode -gt 0) { exit $LastExitCode }
echo "+ go test"
go test
if ($LastExitCode -ne 0) { exit $LastExitCode }
if ($LastExitCode -gt 0) { exit $LastExitCode }
`

Loading…
Cancel
Save