mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-03-13 21:33:22 +01:00
modified: tools/install.sh
This commit is contained in:
parent
2710b2518e
commit
83dcd9efb6
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ user_can_sudo() {
|
|||
# to run `sudo` in the default locale (with `LANG=`) so that the message
|
||||
# stays consistent regardless of the user's locale.
|
||||
#
|
||||
! LANG= sudo -n -v 2>&1 | grep -q "may not run sudo"
|
||||
! LANG=ru_UA.UTF-8 sudo -n -v 2>&1 | grep -q "may not run sudo"
|
||||
}
|
||||
|
||||
# The [ -t 1 ] check only works when the function is not called from
|
||||
|
|
Loading…
Add table
Reference in a new issue