doctor: tweak XQuartz check.
Sometimes (e.g. Homebrew/homebrew#27014) it may find an installed version but no prefix. In this case we still want to tell users if it's outdated.
This commit is contained in:
		
							parent
							
								
									4a4b960558
								
							
						
					
					
						commit
						09330dd83b
					
				@ -1071,7 +1071,7 @@ end
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def check_for_latest_xquartz
 | 
			
		||||
    return unless MacOS::XQuartz.installed?
 | 
			
		||||
    return unless MacOS::XQuartz.version
 | 
			
		||||
    return if MacOS::XQuartz.provided_by_apple?
 | 
			
		||||
 | 
			
		||||
    installed_version = Version.new(MacOS::XQuartz.version)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user