Ensure-Exists is necessary for build.ps1, add it back.

This commit is contained in:
Nicolas Arnaud-Cormos 2014-08-28 13:34:59 +02:00
parent a39c632d71
commit a5691285ec

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) {
try { Get-Command $command -ErrorAction Stop > $null }
catch {
@ -47,4 +55,4 @@ function Flatten-Directory ($name) {
function Digest-MD5 ($path) {
return Invoke-Expression "md5sum $path"
}
}