inreplace: fix map
This commit is contained in:
parent
040d93a006
commit
12d31853ab
@ -86,7 +86,7 @@ module Utils
|
||||
|
||||
contents.gsub!(old, new)
|
||||
end
|
||||
raise Utils::Inreplace::Error, [path => contents.errors] unless contents.errors.empty?
|
||||
raise Utils::Inreplace::Error, path => contents.errors unless contents.errors.empty?
|
||||
|
||||
Pathname(path).atomic_write(contents.inreplace_string) unless read_only_run
|
||||
contents.inreplace_string
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user