From 289c338e343dd97744cb4c9700ce6210a42b98d9 Mon Sep 17 00:00:00 2001 From: Evan Sharp Date: Thu, 7 Jan 2010 14:33:02 -0500 Subject: [PATCH] Allows turning off sudo usage with an ENV variable --- .../app_integration/rails/templates/compass-install-rails.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/compass/app_integration/rails/templates/compass-install-rails.rb b/lib/compass/app_integration/rails/templates/compass-install-rails.rb index e2180ea8..56bc7af7 100644 --- a/lib/compass/app_integration/rails/templates/compass-install-rails.rb +++ b/lib/compass/app_integration/rails/templates/compass-install-rails.rb @@ -33,6 +33,7 @@ # on win32, cygwin, or mingw32 or they ask us not to def use_sudo? return false if RUBY_PLATFORM =~ /(win|w)32$/ # true if win32, cygwin or mingw32 + return false if ENV['NO_SUDO'] =~ /true/i return true end