12 lines
		
	
	
		
			155 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			155 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
if command -v brew;
 | 
						|
then
 | 
						|
    brew update
 | 
						|
    brew upgrade --all
 | 
						|
    brew cleanup
 | 
						|
    brew prune
 | 
						|
else
 | 
						|
    2>&1 echo "homebrew wasn't found"
 | 
						|
fi
 |