fix(sudo): reorder require_sudo() after print_separator()
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user