format code style

This commit is contained in:
rewqazxv 2019-11-06 20:27:12 +08:00
parent c6ec8bc0d9
commit 6a5ee72722
1 changed files with 4 additions and 3 deletions

View File

@ -6365,9 +6365,10 @@ _checkSudo() {
case "$SUDO_COMMAND" in
*/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