Use full path to sudo

This commit is contained in:
Max Howell 2012-03-09 11:57:10 +00:00
parent 897dd14ae5
commit d39364b70a

View File

@ -52,9 +52,9 @@ end
def sudo *args
args = if args.length > 1
args.unshift "sudo"
args.unshift "/usr/bin/sudo"
else
"sudo #{args}"
"/usr/bin/sudo #{args}"
end
ohai *args
system *args