From 3ff0e10d11f7c39baa2a97d341bf9bef9cfe2e19 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 31 Mar 2020 04:31:15 +0200 Subject: [PATCH] Remove some false negative about ynh_die/exit check --- package_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index e3b27e1..f424b56 100755 --- a/package_linter.py +++ b/package_linter.py @@ -535,7 +535,7 @@ class Script(): cmds_before_exit.append(cmd) 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( "[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"