Allows turning off sudo usage with an ENV variable
This commit is contained in:
parent
e3a92c68e4
commit
289c338e34
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user