Use sudo when not on Windows, rather than vice versa.
This commit is contained in:
parent
1a7ccf06d0
commit
d14e4a1dcc
2
Rakefile
2
Rakefile
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue