Skip to content

Commit

Permalink
Merge pull request #17694 from SMillerDev/feat/general/invalidate_sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
woodruffw committed Jul 13, 2024
2 parents f466fca + 2adf25d commit 46c1566
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 46c1566

Please sign in to comment.