Ass assume-yes to DragonflyBSD (#502)

Add assume-yes to DragonflyBSD
This commit is contained in:
signed-log
2023-07-17 03:40:00 +00:00
committed by GitHub
parent 3735d5c537
commit 1ce4d66e74

View File

@@ -10,6 +10,7 @@ pub fn upgrade_packages(ctx: &ExecutionContext) -> Result<()> {
print_separator("DragonFly BSD Packages");
ctx.execute(sudo)
.args(["/usr/local/sbin/pkg", "upgrade"])
.arg(if ctx.config().yes(Step::System) { "-y" } else { "" })
.status_checked()
}