fix: correct git check to break in init.ps1

This commit is contained in:
Kitty Fangs 2024-05-08 16:48:38 +00:00
parent 94ce23b1b8
commit 76eae16e50
1 changed files with 4 additions and 2 deletions

View File

@ -6,8 +6,7 @@
## Make sure we have git
if ((Get-Command -Type Application -ErrorAction SilentlyContinue git) -eq $null)
{
Write-Host "Please install git first"
break
winget install git.git -h
}
## Install homepshick
@ -25,5 +24,8 @@ Enable-HomepsickCastle -All -Force
# Install Terminal-Icons Module
Install-Module -Name Terminal-Icons -Force
# Install Starship (Will prompt for admin)
winget install starship -f
# Init Starship
Invoke-Expression (&starship init powershell)