mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Remove some false negative about ynh_die/exit check
This commit is contained in:
parent
1775202a26
commit
3ff0e10d11
1 changed files with 1 additions and 1 deletions
|
@ -535,7 +535,7 @@ class Script():
|
||||||
cmds_before_exit.append(cmd)
|
cmds_before_exit.append(cmd)
|
||||||
|
|
||||||
for modifying_cmd in modifying_cmds:
|
for modifying_cmd in modifying_cmds:
|
||||||
if any(modifying_cmd in cmd for cmd in cmds_before_exit):
|
if any(modifying_cmd + " " in cmd for cmd in cmds_before_exit):
|
||||||
print_warning_not_reliable(
|
print_warning_not_reliable(
|
||||||
"[YEP-2.4] 'ynh_die' or 'exit' command is executed with system modification before (cmd '%s').\n"
|
"[YEP-2.4] 'ynh_die' or 'exit' command is executed with system modification before (cmd '%s').\n"
|
||||||
"This system modification is an issue if a verification exit the script.\n"
|
"This system modification is an issue if a verification exit the script.\n"
|
||||||
|
|
Loading…
Reference in a new issue