mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
brew uninstall alias for brew rm
This commit is contained in:
parent
87727356bc
commit
dad6dbc6f7
@ -37,7 +37,7 @@ case ARGV[0]
|
||||
file+='.rb' unless File.exist? file
|
||||
system "ruby #{file} #{ARGV.join ' '}"
|
||||
|
||||
when 'rm' then
|
||||
when 'rm', 'uninstall' then
|
||||
path=$root+'Cellar'+ARGV[1]
|
||||
abort "#{ARGV[1]} is not installed" unless path.directory?
|
||||
path.rmtree
|
||||
|
Loading…
x
Reference in New Issue
Block a user