Leave note about bug in lineinfile

This commit is contained in:
Piotr Śliwka 2018-09-02 00:02:57 +02:00 committed by Simon Schuster
parent 31ee0422eb
commit ef6f95221a

View file

@ -105,6 +105,7 @@ function present(module, dest, regexp, line, insertafter, insertbefore, create,
local m = nil
for lineno, cur_line in ipairs(lines) do
if regexp ~= nil then
-- FIXME: lua patterns are not regexes
match_found = string.match(cur_line, mre)
else
match_found = line == rstrip(cur_line, '\r\n')