brew.sh: add tap-pin to sudo check list
This commit is contained in:
		
							parent
							
								
									865b788e96
								
							
						
					
					
						commit
						e8caa48cc2
					
				@ -146,7 +146,7 @@ fi
 | 
			
		||||
if [[ "$(id -u)" = "0" && "$(/usr/bin/stat -f%u "$HOMEBREW_BREW_FILE")" != "0" ]]
 | 
			
		||||
then
 | 
			
		||||
  case "$HOMEBREW_COMMAND" in
 | 
			
		||||
    install|reinstall|postinstall|link|pin|update|upgrade|create|migrate|tap|switch)
 | 
			
		||||
    install|reinstall|postinstall|link|pin|update|upgrade|create|migrate|tap|tap-pin|switch)
 | 
			
		||||
      odie <<EOS
 | 
			
		||||
Cowardly refusing to 'sudo brew $HOMEBREW_COMMAND'
 | 
			
		||||
You can use brew with sudo, but only if the brew executable is owned by root.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user