From 3a8904ad80a761eb29f3ca2605b04f56b1876cbb Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Tue, 23 Apr 2024 00:02:56 +0200 Subject: [PATCH] 'sed -i' info: added mention of 'ynh_replace_string' --- package_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index 4f3cb7c..fc7fc09 100755 --- a/package_linter.py +++ b/package_linter.py @@ -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()