Merge pull request #249 from narnaud/fix-build

Ensure-Exists is necessary for build.ps1, add it back.
This commit is contained in:
Martin Kemp 2014-08-28 12:59:32 +01:00
commit 8cdce27653

View File

@ -1,3 +1,11 @@
function Ensure-Exists ($path) {
if (-not (Test-Path $path)) {
Write-Error "Missing required $path! Ensure it is installed"
exit 1
}
return $true > $null
}
function Ensure-Executable ($command) { function Ensure-Executable ($command) {
try { Get-Command $command -ErrorAction Stop > $null } try { Get-Command $command -ErrorAction Stop > $null }
catch { catch {