mirror of
https://github.com/cmderdev/cmder.git
synced 2025-04-18 07:32:30 +08:00
Ensure-Exists is necessary for build.ps1, add it back.
This commit is contained in:
parent
a39c632d71
commit
a5691285ec
@ -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…
x
Reference in New Issue
Block a user