Skip to content

Commit

Permalink
Merge pull request #146 from YunoHost/OniriCorpe-patch-1
Browse files Browse the repository at this point in the history
'sed -i' info: added mention of 'ynh_replace_string'
  • Loading branch information
alexAubin authored Apr 22, 2024
2 parents 305a99c + 3a8904a commit 6da772f
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 6da772f

Please sign in to comment.