mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-15 00:09:11 +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) {
|
function Ensure-Executable ($command) {
|
||||||
try { Get-Command $command -ErrorAction Stop > $null }
|
try { Get-Command $command -ErrorAction Stop > $null }
|
||||||
catch {
|
catch {
|
||||||
|
Loading…
Reference in New Issue
Block a user