Commit 6a5ee727 authored by rewqazxv's avatar rewqazxv
Browse files

format code style

parent c6ec8bc0
...@@ -6363,11 +6363,12 @@ _checkSudo() { ...@@ -6363,11 +6363,12 @@ _checkSudo() {
return 0 return 0
fi fi
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment