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.
@info
sudo
1 parent 1012595 commit 58b1d87Copy full SHA for 58b1d87
src/binfmt_misc.jl
@@ -246,6 +246,8 @@ function register_requested_formats!(formats::Vector{BinFmtRegistration}; verbos
246
msg = "Registering $(length(formats_to_register)) binfmt_misc entries, this may ask for your `sudo` password."
247
if verbose
248
@info(msg, formats=format_names)
249
+ elseif (Sys.which("sudo") !== nothing) && (success(`sudo -k -n true`))
250
+ # in this case, we know that `sudo` will not prompt the user for a password
251
else
252
@info(msg)
253
end
0 commit comments