Skip to content

Commit

Permalink
feat: do not use existing sudo authentication in brew commands
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev committed Jul 13, 2024
1 parent f5adff9 commit 2adf25d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/brew
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ then
exit 1
fi

# Reset sudo timestamp to avoid running unauthorized sudo commands
if command -v sudo >/dev/null
then
sudo --reset-timestamp
fi

quiet_cd() {
CDPATH='' cd -- "$@" &>/dev/null || return
}
Expand Down

0 comments on commit 2adf25d

Please sign in to comment.