allow pkexec to be used instead of sudo (#201)

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
This commit is contained in:
Marc-Antoine Perennou
2019-08-20 14:02:13 +02:00
committed by Roey Darwish Dror
parent f5c2368a4d
commit fda52486b3
2 changed files with 6 additions and 1 deletions

View File

@@ -89,7 +89,7 @@ fn run() -> Result<(), Error> {
let mut report = Report::new();
#[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "linux"))]
let sudo = utils::which("sudo");
let sudo = utils::sudo();
let run_type = executor::RunType::new(config.dry_run());
#[cfg(feature = "self-update")]