fix: correct git check to break in init.ps1
This commit is contained in:
		
							parent
							
								
									94ce23b1b8
								
							
						
					
					
						commit
						76eae16e50
					
				
							
								
								
									
										6
									
								
								init.ps1
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								init.ps1
									
									
									
									
									
								
							@ -6,8 +6,7 @@
 | 
				
			|||||||
## Make sure we have git
 | 
					## Make sure we have git
 | 
				
			||||||
if ((Get-Command -Type Application -ErrorAction SilentlyContinue git) -eq $null) 
 | 
					if ((Get-Command -Type Application -ErrorAction SilentlyContinue git) -eq $null) 
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  Write-Host "Please install git first"
 | 
					  winget install git.git -h
 | 
				
			||||||
  break
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Install homepshick
 | 
					## Install homepshick
 | 
				
			||||||
@ -25,5 +24,8 @@ Enable-HomepsickCastle -All -Force
 | 
				
			|||||||
# Install Terminal-Icons Module
 | 
					# Install Terminal-Icons Module
 | 
				
			||||||
Install-Module -Name Terminal-Icons -Force
 | 
					Install-Module -Name Terminal-Icons -Force
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Install Starship (Will prompt for admin)
 | 
				
			||||||
 | 
					winget install starship -f
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Init Starship
 | 
					# Init Starship
 | 
				
			||||||
Invoke-Expression (&starship init powershell)
 | 
					Invoke-Expression (&starship init powershell)
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user