fix sudo wrapper
This commit is contained in:
parent
050c160de2
commit
4c969a6ae7
1 changed files with 6 additions and 2 deletions
|
@ -13,9 +13,13 @@ module Vagrant
|
||||||
|
|
||||||
def run(*command)
|
def run(*command)
|
||||||
options = command.last.is_a?(Hash) ? command.last : {}
|
options = command.last.is_a?(Hash) ? command.last : {}
|
||||||
command.unshift @wrapper_path if @wrapper_path && !options[:no_wrapper]
|
if @wrapper_path && !options[:no_wrapper]
|
||||||
|
command.unshift @wrapper_path
|
||||||
|
execute *(['sudo'] + command)
|
||||||
|
else
|
||||||
execute *(['sudo', '/usr/bin/env'] + command)
|
execute *(['sudo', '/usr/bin/env'] + command)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue