feat: do not use existing sudo authentication in brew commands

This commit is contained in:
Sean Molenaar 2024-07-13 17:12:05 +02:00
parent f5adff9d90
commit 2adf25dcaf

View File

@ -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
}