Fix etc-update

This commit is contained in:
Roey Darwish Dror
2019-06-02 08:46:02 +03:00
parent d28ca4e8b4
commit cba73aa8fc

View File

@@ -321,7 +321,7 @@ pub fn run_pihole_update(sudo: Option<&PathBuf>, run_type: RunType) -> Result<()
#[must_use] #[must_use]
pub fn run_etc_update(sudo: Option<&PathBuf>, run_type: RunType) -> Result<(), Error> { pub fn run_etc_update(sudo: Option<&PathBuf>, run_type: RunType) -> Result<(), Error> {
let sudo = require_option(sudo)?; let sudo = require_option(sudo)?;
let etc_update = require("etc_update")?; let etc_update = require("etc-update")?;
print_separator("etc-update"); print_separator("etc-update");
run_type.execute(sudo).arg(etc_update).check_run() run_type.execute(sudo).arg(etc_update).check_run()