18 lines
		
	
	
		
			319 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			319 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| require 'formula'
 | |
| 
 | |
| module Homebrew extend self
 | |
|   def unpin
 | |
|     raise FormulaUnspecifiedError if ARGV.named.empty?
 | |
| 
 | |
|     ARGV.formulae.each do |f|
 | |
|       if f.pinned?
 | |
|         f.unpin
 | |
|       elsif !f.pinnable?
 | |
|         onoe "#{f.name} not installed"
 | |
|       else
 | |
|         opoo "#{f.name} not pinned"
 | |
|       end
 | |
|     end
 | |
|   end
 | |
| end
 | 
