mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Automatically call sudo in the install rake task.
This commit is contained in:
parent
f1ac876497
commit
1a7ccf06d0
1 changed files with 2 additions and 1 deletions
3
Rakefile
3
Rakefile
|
@ -113,7 +113,8 @@ END
|
|||
Rake::Task[:package].enhance { File.delete('REVISION') if File.exists?('REVISION') }
|
||||
|
||||
task :install => [:package] do
|
||||
sh %{gem install --no-ri pkg/haml-#{File.read('VERSION').strip}}
|
||||
sudo = RUBY_PLATFORM =~ /win32/ ? 'sudo' : ''
|
||||
sh %{#{sudo} gem install --no-ri pkg/haml-#{File.read('VERSION').strip}}
|
||||
end
|
||||
|
||||
task :release => [:package] do
|
||||
|
|
Loading…
Reference in a new issue