diff options
author | Marc Cornellà <hello@mcornella.com> | 2022-01-11 18:56:18 +0100 |
---|---|---|
committer | Marc Cornellà <hello@mcornella.com> | 2022-01-11 19:13:23 +0100 |
commit | a0a949de56f7bc63403c521bfb1d7426843ec5b7 (patch) | |
tree | 60b7d004a90ddcea49e0a140be2ce903021ffff8 /plugins/grc | |
parent | b7a59e6d5c1a699b972a780b4a4eb4ffd89f22b3 (diff) | |
download | zsh-a0a949de56f7bc63403c521bfb1d7426843ec5b7.tar.gz zsh-a0a949de56f7bc63403c521bfb1d7426843ec5b7.tar.bz2 zsh-a0a949de56f7bc63403c521bfb1d7426843ec5b7.zip |
fix(installer): fix `sudo` check for users with password or without privileges
The previous check only worked if the user could run `sudo` without typing the
password, which is almost none (I checked in Google Cloud Shell so I failed to
notice this).
This new check works whether the user has no sudo privileges, or if it has,
whether they have to type in the password or not.
It should really be easier to check if the user doesn't have privilege without
having to make them type the password.
Diffstat (limited to 'plugins/grc')
0 files changed, 0 insertions, 0 deletions