TeX live manager (fix #223) (#251)

This commit is contained in:
Roey Darwish Dror
2019-12-12 20:24:22 +02:00
committed by GitHub
parent 60405e0456
commit c4ef712b3b
7 changed files with 63 additions and 3 deletions

View File

@@ -88,7 +88,7 @@ pub fn which<T: AsRef<OsStr> + Debug>(binary_name: T) -> Option<PathBuf> {
}
}
#[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "linux"))]
#[cfg(unix)]
pub fn sudo() -> Option<PathBuf> {
which("sudo").or_else(|| which("pkexec"))
}