Skip to content

Commit

Permalink
[fetchDependency] Introduce Test-Command function
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkaratarakis committed Oct 17, 2017
1 parent 8729682 commit edb718e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/fetchDependency.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ $vcpkgRootDir = & $scriptsDir\findFileRecursivelyUp.ps1 $scriptsDir .vcpkg-root

$downloadsDir = "$vcpkgRootDir\downloads"

function Test-Command($commandName)
{
return [bool](Get-Command -Name $commandName -ErrorAction SilentlyContinue)
}

function SelectProgram([Parameter(Mandatory=$true)][string]$Dependency)
{
function performDownload( [Parameter(Mandatory=$true)][string]$Dependency,
Expand Down

0 comments on commit edb718e

Please sign in to comment.