diff --git a/src/steps/os/dragonfly.rs b/src/steps/os/dragonfly.rs index 55e8c3c3..b314a47f 100644 --- a/src/steps/os/dragonfly.rs +++ b/src/steps/os/dragonfly.rs @@ -1,3 +1,4 @@ +use crate::command::CommandExt; use crate::executor::RunType; use crate::terminal::print_separator; use crate::utils::require_option; @@ -7,10 +8,10 @@ use std::process::Command; pub fn upgrade_packages(sudo: Option<&PathBuf>, run_type: RunType) -> Result<()> { let sudo = require_option(sudo, String::from("No sudo detected"))?; - print_separator("DrgaonFly BSD Packages"); + print_separator("DragonFly BSD Packages"); run_type .execute(sudo) - .args(&["/usr/local/sbin/pkg", "upgrade"]) + .args(["/usr/local/sbin/pkg", "upgrade"]) .status_checked() } @@ -18,7 +19,7 @@ pub fn audit_packages(sudo: &Option) -> Result<()> { if let Some(sudo) = sudo { println!(); Command::new(sudo) - .args(&["/usr/local/sbin/pkg", "audit", "-Fr"]) + .args(["/usr/local/sbin/pkg", "audit", "-Fr"]) .status_checked()?; } Ok(())