From d14e4a1dcc0b7a700971b15dec349f8171f34838 Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum Date: Wed, 23 Apr 2008 16:41:34 -0700 Subject: [PATCH] Use sudo when not on Windows, rather than vice versa. --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 5bfe1507..e7e9ab78 100644 --- a/Rakefile +++ b/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