try to fix the script

This commit is contained in:
Patrick von Reth 2015-07-20 15:07:09 +02:00
parent 09ee646ee6
commit d3921715aa
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ branches:
build_script:
- ps: >-
& "$env:APPVEYOR_BUILD_FOLDER\ci\appveyor.ps1"
exit $lastexitcode
if ($lastexitcode -ne 0){ exit $lastexitcode }
cache:
- work\git -> appveyor.yml

View File

@ -2,11 +2,11 @@
#http://stackoverflow.com/questions/2124753/how-i-can-use-powershell-with-the-visual-studio-command-prompt
function batCall([string] $path, [string] $arg)
{
Write-Host "Calling '$path' '$arg'"
cmd /c "'$path' '$arg' & set" |
Write-Host 'Calling "$path" "$arg"'
cmd /c '"$path" "$arg" & set' |
foreach {
if ($_ -match "=") {
Write-Host "ENV:\$($v[0])=$($v[1])"
#Write-Host "ENV:\$($v[0])=$($v[1])"
$v = $_.split("="); set-item -force -path "ENV:\$($v[0])" -value "$($v[1])"
}
}