modified: tools/install.sh

This commit is contained in:
seocringe 2024-02-24 23:19:40 +02:00
parent 2710b2518e
commit 83dcd9efb6

View file

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