mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Merge pull request #146 from YunoHost/OniriCorpe-patch-1
'sed -i' info: added mention of 'ynh_replace_string'
This commit is contained in:
commit
6da772f7fd
1 changed files with 1 additions and 1 deletions
|
@ -2913,7 +2913,7 @@ class Script(TestSuite):
|
||||||
r"sed\s+(-i|--in-place)\s+(-r\s+)?s"
|
r"sed\s+(-i|--in-place)\s+(-r\s+)?s"
|
||||||
) or self.containsregex(r"sed\s+s\S*\s+(-i|--in-place)"):
|
) or self.containsregex(r"sed\s+s\S*\s+(-i|--in-place)"):
|
||||||
yield Info(
|
yield Info(
|
||||||
"You should avoid using 'sed -i' for substitutions, please use 'ynh_add_config' instead"
|
"You should avoid using 'sed -i' for substitutions, please use 'ynh_replace_string' or 'ynh_add_config' instead"
|
||||||
)
|
)
|
||||||
|
|
||||||
@test()
|
@test()
|
||||||
|
|
Loading…
Reference in a new issue