From a8eb84812ae62292427cafa48a2c65e8e6693d3c Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 22 Mar 2014 11:13:33 -0500 Subject: [PATCH] Write install receipts atomically --- Library/Homebrew/tab.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb index a922f914fd..0c6fb79272 100644 --- a/Library/Homebrew/tab.rb +++ b/Library/Homebrew/tab.rb @@ -118,7 +118,7 @@ class Tab < OpenStruct end def write - tabfile.write to_json + tabfile.atomic_write(to_json) end def to_s