Skip to content
Browse files

[all] rake install task should use sudo on JRuby

* *NIX platforms only.
* SUDOLESS env may be set to prevent this behavior, but this brings it
  closer inline to how rake install works for MRI.

Signed-off-by: Alex Coles <alex@alexcolesportfolio.com>
  • Loading branch information...
1 parent 12d4e1e commit 875692d061050bf7acd141fc3906c0cf99a79321 @myabc myabc committed with dkubb Oct 31, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 Rakefile
View
2 Rakefile
@@ -3,7 +3,7 @@ require 'pathname'
ROOT = Pathname(__FILE__).dirname.expand_path
JRUBY = RUBY_PLATFORM =~ /java/
WINDOWS = Gem.win_platform? || (JRUBY && ENV_JAVA['os.name'] =~ /windows/i)
-SUDO = (WINDOWS || JRUBY) ? '' : ('sudo' unless ENV['SUDOLESS'])
+SUDO = WINDOWS ? '' : ('sudo' unless ENV['SUDOLESS'])
require ROOT + 'lib/dm-migrations/version'

0 comments on commit 875692d

Please sign in to comment.
Something went wrong with that request. Please try again.