fix(sudo): reorder require_sudo() after print_separator()

This commit is contained in:
Andre Toerien
2025-09-26 21:22:55 +02:00
committed by Gideon
parent ad9f2c2ccb
commit 0dee534f84
7 changed files with 55 additions and 50 deletions

View File

@@ -199,11 +199,12 @@ pub fn run_oh_my_fish(ctx: &ExecutionContext) -> Result<()> {
}
pub fn run_pkgin(ctx: &ExecutionContext) -> Result<()> {
let sudo = ctx.require_sudo()?;
let pkgin = require("pkgin")?;
print_separator("Pkgin");
let sudo = ctx.require_sudo()?;
let mut command = sudo.execute(ctx, &pkgin)?;
command.arg("update");
if ctx.config().yes(Step::Pkgin) {