Skip to content
Snippets Groups Projects
Commit 2b29e052 authored by Max Howell's avatar Max Howell
Browse files

reinreplace uses safe_system

parent 4671526d
No related branches found
No related tags found
No related merge requests found
......@@ -132,5 +132,5 @@ def inreplace(path, before, after)
# TODO this sucks
# 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment