'sed -i' info: added mention of 'ynh_replace_string'

This commit is contained in:
OniriCorpe 2024-04-23 00:02:56 +02:00 committed by GitHub
parent 305a99c890
commit 3a8904ad80
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"
) or self.containsregex(r"sed\s+s\S*\s+(-i|--in-place)"):
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()