Use sudo when not on Windows, rather than vice versa.

This commit is contained in:
Nathan Weizenbaum 2008-04-23 16:41:34 -07:00
parent 1a7ccf06d0
commit d14e4a1dcc
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ END
Rake::Task[:package].enhance { File.delete('REVISION') if File.exists?('REVISION') }
task :install => [:package] do
sudo = RUBY_PLATFORM =~ /win32/ ? 'sudo' : ''
sudo = RUBY_PLATFORM =~ /win32/ ? '' : 'sudo'
sh %{#{sudo} gem install --no-ri pkg/haml-#{File.read('VERSION').strip}}
end