Skip to content

Commit

Permalink
Fix auto-pr.ps1 pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
r15ch13 committed Apr 14, 2017
1 parent 3acfdee commit 95a600d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/auto-pr.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ function pull_requests($json, [String]$app, [String]$upstream, [String]$manifest
$branch = "manifest/$app-$version"

execute "hub checkout master"
execute "hub rev-parse --verify $branch"
Write-Host -f Green "hub rev-parse --verify $branch"
# don't use execute function, this command should not exit the program
iex "hub rev-parse --verify $branch"

if($LASTEXITCODE -eq 0) {
Write-Host -f Yellow "Skipping update $app ($version) ..."
Expand Down

0 comments on commit 95a600d

Please sign in to comment.