Surpress explicit news printing when paru is used (#623)
This commit is contained in:
@@ -156,14 +156,17 @@ fn upgrade_arch_linux(ctx: &ExecutionContext) -> Result<()> {
|
||||
};
|
||||
debug!("Running Arch update with path: {:?}", path);
|
||||
|
||||
if let Some(yay) = which("yay").or_else(|| which("paru")) {
|
||||
let yay = which("yay");
|
||||
if let Some(yay) = &yay {
|
||||
run_type
|
||||
.execute(&yay)
|
||||
.arg("-Pw")
|
||||
.spawn()
|
||||
.and_then(|mut p| p.wait())
|
||||
.ok();
|
||||
}
|
||||
|
||||
if let Some(yay) = yay.or_else(|| which("paru")) {
|
||||
let mut command = run_type.execute(&yay);
|
||||
|
||||
command
|
||||
|
||||
Reference in New Issue
Block a user