mirror of
https://github.com/anikeen-com/acme.sh.git
synced 2026-11-02 05:49:07 +00:00
format code style
This commit is contained in:
1 parent
c6ec8bc0d9
commit
6a5ee72722
1 file changed
+3
-2
@@ -6365,9 +6365,10 @@ _checkSudo() {
|
|||||||
case "$SUDO_COMMAND" in
|
case "$SUDO_COMMAND" in
|
||||||
*/su)
|
*/su)
|
||||||
#it's a normal user doing `sudo su`, no problem
|
#it's a normal user doing `sudo su`, no problem
|
||||||
return 0 ;;
|
return 0
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
for i in `cat /etc/shells`; do
|
for i in $(cat /etc/shells); do
|
||||||
if [ "$SUDO_COMMAND" = "$i" ]; then
|
if [ "$SUDO_COMMAND" = "$i" ]; then
|
||||||
#it's a normal user running `sudo -i` or `sudo -s`, fine
|
#it's a normal user running `sudo -i` or `sudo -s`, fine
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in new issue
Block a user