Skip to content

Commit

Permalink
refactor: run pre-sudo before pre-cmds && clear cached credential aft…
Browse files Browse the repository at this point in the history
…er execution
  • Loading branch information
SteveLauC committed Oct 5, 2023
1 parent 1c1539a commit 15dd63b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sudo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ impl Sudo {
}

/// Clear the cached credential.
///
/// No-op if the underlying sudo does not support this feature.
pub fn clear_credential(&self, ctx: &ExecutionContext) -> Result<()> {
print_separator("Sudo - Clear Cached Credential");
let mut cmd = ctx.run_type().execute(self);
Expand Down

0 comments on commit 15dd63b

Please sign in to comment.