mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Fix bad_ynh_exec_syntax
This commit is contained in:
parent
a76822b39c
commit
7179390b2c
1 changed files with 1 additions and 1 deletions
|
@ -2515,7 +2515,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')")
|
||||
|
||||
|
|
Loading…
Reference in a new issue