Merge pull request #146 from YunoHost/OniriCorpe-patch-1

'sed -i' info: added mention of 'ynh_replace_string'
This commit is contained in:
Alexandre Aubin 2024-04-23 00:05:11 +02:00 committed by GitHub
commit 6da772f7fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()