Skip to content

Commit

Permalink
'sed -i' info: added mention of 'ynh_replace_string'
Browse files Browse the repository at this point in the history
  • Loading branch information
OniriCorpe authored Apr 22, 2024
1 parent 305a99c commit 3a8904a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2913,7 +2913,7 @@ def sed(self):
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()
Expand Down

0 comments on commit 3a8904a

Please sign in to comment.