From c08af640ff4301b0ab0831f4806061dfea10e20a Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Wed, 28 Feb 2024 05:02:31 +0100 Subject: [PATCH] Fix bad_ynh_exec_syntax --- package_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index 504581e..0442c3c 100755 --- a/package_linter.py +++ b/package_linter.py @@ -2513,7 +2513,7 @@ class Script(TestSuite): @test() def bad_ynh_exec_syntax(self): - cmd = 'grep -q -IhEro "ynh_exec_(err|warn|warn_less|quiet|fully_quiet) (\\"|\')" %s' % self.path + cmd = 'grep -q -IhEro "ynh_exec_(err|warn|warn_less|quiet|fully_quiet) (\\"|\').*(\\"|\')$" %s' % self.path if os.system(cmd) == 0: yield Warning("(Requires Yunohost 4.3) When using ynh_exec_*, please don't wrap your command between quotes (typically DONT write ynh_exec_warn_less 'foo --bar --baz')")