mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 21:21:42 +00:00
format code style
This commit is contained in:
parent
c6ec8bc0d9
commit
6a5ee72722
7
acme.sh
7
acme.sh
@ -6363,11 +6363,12 @@ _checkSudo() {
|
||||
return 0
|
||||
fi
|
||||
case "$SUDO_COMMAND" in
|
||||
*/su )
|
||||
*/su)
|
||||
#it's a normal user doing `sudo su`, no problem
|
||||
return 0 ;;
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
for i in `cat /etc/shells`; do
|
||||
for i in $(cat /etc/shells); do
|
||||
if [ "$SUDO_COMMAND" = "$i" ]; then
|
||||
#it's a normal user running `sudo -i` or `sudo -s`, fine
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user