mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
cp and mkdir don't need to be prefix with 'sudo'.
This commit is contained in:
parent
3838462531
commit
43dfdd29f4
1 changed files with 2 additions and 2 deletions
|
@ -121,8 +121,8 @@ def check_sudo_prefix_commands(script):
|
||||||
"""
|
"""
|
||||||
Check if commands are prefix with "sudo"
|
Check if commands are prefix with "sudo"
|
||||||
"""
|
"""
|
||||||
cmd = ("cp", "mkdir", "rm", "chown", "chmod", "apt-get", "apt", \
|
cmd = ("rm", "chown", "chmod", "apt-get", "apt", \
|
||||||
"service", "yunohost", "find" "swapon", "mkswap", "useradd")#, "dd")
|
"service", "yunohost", "find" "swapon", "mkswap", "useradd")#, "dd") cp, mkdir
|
||||||
i, ok = 0, 1
|
i, ok = 0, 1
|
||||||
while i < len(script):
|
while i < len(script):
|
||||||
j = 0
|
j = 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue