Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/u3d_core/command_executor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ def grant_admin_privileges(command)
if Helper.windows?
raise CredentialsError, "The command \'#{command}\' must be run in administrative shell" unless has_admin_privileges?
else
raise CredentialsError, "The command \'#{command}\' must be run with admin privileges" unless has_admin_privileges?
command = "sudo -k && echo #{cred.password.shellescape} | sudo -S bash -c \"#{command}\""
end
UI.verbose 'Admin privileges granted for command execution'
Expand Down