Fix BSDs (fix #519)

This commit is contained in:
Roey Darwish Dror
2020-09-06 19:43:14 +03:00
parent b8cca4e00c
commit dd61835332
2 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ use std::path::PathBuf;
use std::process::Command;
pub fn upgrade_packages(sudo: Option<&PathBuf>, run_type: RunType) -> Result<()> {
let sudo = require_option(sudo)?;
let sudo = require_option(sudo, String::from("No sudo detected"))?;
print_separator("DrgaonFly BSD Packages");
run_type
.execute(sudo)