do not display message when alterring git path

This commit is contained in:
dgames 2022-01-15 16:02:14 -05:00
parent f0c4e85ac8
commit 7cc1c77225

View File

@ -83,7 +83,7 @@ function Configure-Git($gitRoot, $gitType, $gitPathUser){
if ($gitType -eq 'VENDOR') {
# If User Git is installed replace its path config with Newer Vendored Git Path
if ($gitPathUser -ne '' -and $gitPathUser -ne $null) {
write-host "Cmder 'profile.ps1': Replacing older user Git path '$gitPathUser' with newer vendored Git path '$gitRoot' in the system path..."
# write-host "Cmder 'profile.ps1': Replacing older user Git path '$gitPathUser' with newer vendored Git path '$gitRoot' in the system path..."
$newPath = ($env:path -ireplace [regex]::Escape($gitPathUser), $gitRoot)
} else {
@ -115,7 +115,6 @@ function Configure-Git($gitRoot, $gitType, $gitPathUser){
}
function Import-Git(){
$GitModule = Get-Module -Name Posh-Git -ListAvailable
if($GitModule | select version | where version -le ([version]"0.6.1.20160330")){
Import-Module Posh-Git > $null