simplification

This commit is contained in:
lunardunno 2024-10-27 15:33:08 +04:00 committed by GitHub
parent 6c22a7372d
commit ae681ad6d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,3 +1,3 @@
echo $LC_MESSAGES | grep -qE "en_US.UTF-8|C.UTF-8" || export LC_MESSAGES=C.UTF-8;\
CUR_USER=$(whoami);\
groups $CUR_USER | grep sudo && sudo -n -u $CUR_USER sh -c "sudo -n uname 2>&1 > /dev/null"
groups $CUR_USER | grep sudo && sudo -nu $CUR_USER sudo -n uname > /dev/null