fix: correct git check to break in init.ps1
This commit is contained in:
		
							parent
							
								
									9ded09c56b
								
							
						
					
					
						commit
						9ddfd7c784
					
				
							
								
								
									
										6
									
								
								init.ps1
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								init.ps1
									
									
									
									
									
								
							@ -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)
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user