diff --git a/Library/Homebrew/cache_store.rb b/Library/Homebrew/cache_store.rb index 14e90fca6a..cccad7d01c 100644 --- a/Library/Homebrew/cache_store.rb +++ b/Library/Homebrew/cache_store.rb @@ -39,6 +39,7 @@ class CacheStoreDatabase # Closes the underlying database (if it is created and open). def close_if_open! return unless @db + cache_path.dirname.mkpath cache_path.atomic_write(JSON.dump(@db)) end