items.sh: return early when no Taps directory
This commit is contained in:
		
							parent
							
								
									7d04dd9d68
								
							
						
					
					
						commit
						04a61fbca4
					
				@ -17,6 +17,7 @@ homebrew-items() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  # HOMEBREW_REPOSITORY is set by brew.sh
 | 
					  # HOMEBREW_REPOSITORY is set by brew.sh
 | 
				
			||||||
  # shellcheck disable=SC2154
 | 
					  # shellcheck disable=SC2154
 | 
				
			||||||
 | 
					  [[ -d "${HOMEBREW_REPOSITORY}/Library/Taps" ]] || return
 | 
				
			||||||
  items="$(
 | 
					  items="$(
 | 
				
			||||||
    find "${HOMEBREW_REPOSITORY}/Library/Taps" \
 | 
					    find "${HOMEBREW_REPOSITORY}/Library/Taps" \
 | 
				
			||||||
      -type d \( \
 | 
					      -type d \( \
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user