Skip to content

Commit

Permalink
Fail if the version tag doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlbyk committed Jan 31, 2017
1 parent 9a1d91d commit 83ce339
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chocolatey/packAndLocalInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ pushd $PSScriptRoot
$nuspec = [xml](Get-Content poshgit.nuspec)
$version = $nuspec.package.metadata.version

$ErrorActionPreference = 'Stop'
git rev-parse $version 2>$null

choco pack poshgit.nuspec
choco install -f -y poshgit -pre --version=$version -s .

Expand Down

0 comments on commit 83ce339

Please sign in to comment.