mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 09:49:12 +08:00
Merge pull request #249 from narnaud/fix-build
Ensure-Exists is necessary for build.ps1, add it back.
This commit is contained in:
commit
8cdce27653
@ -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"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user