aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-03-22 11:13:33 -0500
committerJack Nagel2014-03-22 11:13:33 -0500
commita8eb84812ae62292427cafa48a2c65e8e6693d3c (patch)
tree21f7923d1f184406d85bf29c5ff7d91735230c3f /Library
parent26fe9df9b2398a84864654187702deeaa2c84171 (diff)
downloadbrew-a8eb84812ae62292427cafa48a2c65e8e6693d3c.tar.bz2
Write install receipts atomically
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/tab.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb
index a922f914f..0c6fb7927 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