Fix: Install - Powershell Get-Command error message remove

This commit is contained in:
alstjr7375 2022-04-23 01:30:59 +09:00
parent a021cdf509
commit 477f899f59

View file

@ -99,8 +99,8 @@ function Install-Choco() {
}
function Check-Git() {
if( -Not (Get-Command git) ) {
if ( -Not (Get-Command choco)) {
if ( -Not (Get-Command git -errorAction SilentlyContinue) ) {
if ( -Not (Get-Command choco -errorAction SilentlyContinue) ) {
Install-Choco
}
choco install git -y