1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-22 04:11:58 +00:00

chore(installer): remove words triggering false positives in antiviruses

This commit is contained in:
Marc Cornellà 2023-04-03 22:21:49 +02:00
parent d47e1d65f6
commit f8bf88edca
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B

View file

@ -84,8 +84,7 @@ command_exists() {
user_can_sudo() { user_can_sudo() {
# Check if sudo is installed # Check if sudo is installed
command_exists sudo || return 1 command_exists sudo || return 1
# Termux can't run sudo unless the device is rooted. Either way, `chsh` works # Termux can't run sudo, so we can detect it and exit the function early.
# without sudo, so we can detect it and exit the function early.
case "$PREFIX" in case "$PREFIX" in
*com.termux*) return 1 ;; *com.termux*) return 1 ;;
esac esac