Merge pull request #17694 from SMillerDev/feat/general/invalidate_sudo
This commit is contained in:
commit
46c156660b
6
bin/brew
6
bin/brew
@ -36,6 +36,12 @@ then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Reset sudo timestamp to avoid running unauthorized sudo commands
|
||||||
|
if command -v sudo >/dev/null
|
||||||
|
then
|
||||||
|
sudo --reset-timestamp
|
||||||
|
fi
|
||||||
|
|
||||||
quiet_cd() {
|
quiet_cd() {
|
||||||
CDPATH='' cd -- "$@" &>/dev/null || return
|
CDPATH='' cd -- "$@" &>/dev/null || return
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user