From 20a200bdb73855767daa4d322bb49267151de45d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 7 Jan 2023 19:44:44 +0000 Subject: [PATCH] cask/installer: ensure config_path exists. I encountered this when installing `microsoft-edge`. Perhaps `HOMEBREW_INSTALL_FROM_API` related. --- Library/Homebrew/cask/installer.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/cask/installer.rb b/Library/Homebrew/cask/installer.rb index 5c92615e9e..7a4b2eb76a 100644 --- a/Library/Homebrew/cask/installer.rb +++ b/Library/Homebrew/cask/installer.rb @@ -388,6 +388,7 @@ module Cask end def save_config_file + @cask.config_path.dirname.mkpath @cask.config_path.atomic_write(@cask.config.to_json) end