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
commit7dffcfa30068981a8c6625ecd362dfc4c2ff5f6b (patch)
tree1216435387f044080cc28de0177ade8669930027 /Library
parent9c8e2572dc4ca041cf36743e4d563c7c5a3a871a (diff)
downloadhomebrew-7dffcfa30068981a8c6625ecd362dfc4c2ff5f6b.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