We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 60a2634 + 121b358 commit 6eb5732Copy full SHA for 6eb5732
lib/u3d_core/command_executor.rb
@@ -144,6 +144,7 @@ def grant_admin_privileges(command)
144
if Helper.windows?
145
raise CredentialsError, "The command \'#{command}\' must be run in administrative shell" unless has_admin_privileges?
146
else
147
+ raise CredentialsError, "The command \'#{command}\' must be run with admin privileges" unless has_admin_privileges?
148
command = "sudo -k && echo #{cred.password.shellescape} | sudo -S bash -c \"#{command}\""
149
end
150
UI.verbose 'Admin privileges granted for command execution'
0 commit comments