Skip to content

Commit

Permalink
Fix PowerShell script for updating Git
Browse files Browse the repository at this point in the history
  • Loading branch information
hach-que committed Nov 18, 2024
1 parent f0fd103 commit e0ddcdf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ await _processExecutor.ExecuteAsync(
Write-Host "Installing Git because it's not currently installed...";
Install-WinGetPackage -Id Microsoft.Git -Mode Silent;
exit 0;
} else if ($InstalledPackage.Version -ne (Find-WinGetPackage -Id Microsoft.Git).Version) {
} elseif ($InstalledPackage.Version -ne (Find-WinGetPackage -Id Microsoft.Git).Version) {
Write-Host "Updating Git because it's not the latest version...";
Update-WinGetPackage -Id Microsoft.Git -Mode Silent;
exit 0;
Expand Down

0 comments on commit e0ddcdf

Please sign in to comment.