reinreplace uses safe_system

This commit is contained in:
Max Howell 2009-08-23 17:56:53 +01:00
parent 4671526d70
commit 2b29e052fc

View File

@ -132,5 +132,5 @@ def inreplace(path, before, after)
# TODO this sucks # TODO this sucks
# either use 'ed', or allow regexp and use a proper ruby function # either use 'ed', or allow regexp and use a proper ruby function
Kernel.system "perl", "-pi", "-e", "s/#{before}/#{after}/g", path safe_system "perl", "-pi", "-e", "s/#{before}/#{after}/g", path
end end