mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Fix some false-negative about exit usage + report it as error
This commit is contained in:
parent
01adf07c5e
commit
cd396af50e
1 changed files with 2 additions and 2 deletions
|
@ -951,8 +951,8 @@ class Script(TestSuite):
|
|||
@test()
|
||||
def exit_ynhdie(self):
|
||||
|
||||
if self.contains("exit"):
|
||||
yield Warning("'exit' command shouldn't be used. Please use 'ynh_die' instead.")
|
||||
if self.contains(r"\bexit\b"):
|
||||
yield Error("'exit' command shouldn't be used. Please use 'ynh_die' instead.")
|
||||
|
||||
@test()
|
||||
def old_regenconf(self):
|
||||
|
|
Loading…
Reference in a new issue