Skip to content

Commit 89982cd

Browse files
author
Christopher Brown
committed
automatically remove executables without prompting in the rake uninstall task
1 parent 25d460e commit 89982cd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

chef-server/lib/tasks/uninstall.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ require 'rubygems'
22
require 'rake/gempackagetask'
33

44
task :uninstall do
5-
sh %{sudo gem uninstall #{GEM} -v #{CHEF_SERVER_VERSION}}
5+
sh %{sudo gem uninstall #{GEM} -x -v #{CHEF_SERVER_VERSION}}
66
end
77

chef/Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ task :install => :package do
5050
end
5151

5252
task :uninstall do
53-
sh %{sudo gem uninstall #{GEM} -v #{CHEF_VERSION} }
53+
sh %{sudo gem uninstall #{GEM} -x -v #{CHEF_VERSION} }
5454
end
5555

5656
desc "create a gemspec file"

0 commit comments

Comments
 (0)