Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
6a5ee727
Commit
6a5ee727
authored
Nov 06, 2019
by
rewqazxv
Browse files
format code style
parent
c6ec8bc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
6a5ee727
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment