private/Tests/Test-CommandGit.ps1
|
function Test-CommandGit { <# .SYNOPSIS Returns $true when git is available in the current session PATH. .NOTES Author: David Segura Company: Recast Software Use Test-InstallGit to check whether Git for Windows is installed via the registry. This function only confirms PATH availability. Dependencies: Module Functions: Test-InstallGit #> [OutputType([bool])] param () return ($null -ne (Get-Command -Name 'git' -ErrorAction SilentlyContinue)) } |