Preserve DIFFPROG when running Pacdiff in sudo (fix #842)

This commit is contained in:
Roey Darwish Dror
2022-01-24 20:32:48 +02:00
parent 912dd006a1
commit 63f4e01650

View File

@@ -544,7 +544,11 @@ pub fn run_config_update(sudo: Option<&PathBuf>, run_type: RunType) -> Result<()
} }
print_separator("Configuration update"); print_separator("Configuration update");
run_type.execute(sudo).arg(pacdiff).check_run()?; run_type
.execute(sudo)
.arg("--preserve-env=DIFFPROG")
.arg(pacdiff)
.check_run()?;
} }
Ok(()) Ok(())