mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Merge pull request #68 from YunoHost/fix-sudo-detection
fix sudo detection
This commit is contained in:
commit
5b4c4a81b9
1 changed files with 1 additions and 1 deletions
|
@ -575,7 +575,7 @@ class Script():
|
||||||
print_error("[YEP-2.12] You should avoid using 'rm -rf', please use 'ynh_secure_remove' instead")
|
print_error("[YEP-2.12] You should avoid using 'rm -rf', please use 'ynh_secure_remove' instead")
|
||||||
if self.contains("sed -i"):
|
if self.contains("sed -i"):
|
||||||
print_warning("[YEP-2.12] You should avoid using 'sed -i', please use 'ynh_replace_string' instead")
|
print_warning("[YEP-2.12] You should avoid using 'sed -i', please use 'ynh_replace_string' instead")
|
||||||
if self.contains("sudo"):
|
if self.contains("sudo "):
|
||||||
print_warning(
|
print_warning(
|
||||||
"[YEP-2.12] You should not need to use 'sudo', the script is being run as root. "
|
"[YEP-2.12] You should not need to use 'sudo', the script is being run as root. "
|
||||||
"(If you need to run a command using a specific user, use 'ynh_exec_as')"
|
"(If you need to run a command using a specific user, use 'ynh_exec_as')"
|
||||||
|
|
Loading…
Reference in a new issue