Use `File.open` instead of `File.write` shortcut.

parent b3db34c2
...@@ -132,7 +132,11 @@ file presym_file => cfiles+rbfiles do ...@@ -132,7 +132,11 @@ file presym_file => cfiles+rbfiles do
presyms = File.readlines(presym_file, chomp: true) rescue [] presyms = File.readlines(presym_file, chomp: true) rescue []
if presyms != symbols if presyms != symbols
rm_f presym_file rm_f presym_file
File.write(presym_file, symbols.join("\n")) File.open(presym_file, "w") do |f|
symbols.each do|line|
f.puts line
end
end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment