Created
August 14, 2009 16:06
-
-
Save e1senh0rn/167914 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Cleanup old inactive ports | |
| `port installed`.split("\n")[1..-1].each do |line| | |
| unless line =~ /^\s+(.*)\(active\)$/ | |
| print "#{line}\n" | |
| `sudo port uninstall #{line}` | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment