diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/download_strategy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/download_strategy.rb b/Library/Homebrew/cask/lib/hbc/download_strategy.rb index 4a601af2b..137af319a 100644 --- a/Library/Homebrew/cask/lib/hbc/download_strategy.rb +++ b/Library/Homebrew/cask/lib/hbc/download_strategy.rb @@ -105,7 +105,7 @@ module Hbc else had_incomplete_download = temporary_path.exist? begin - File.open(temporary_path, "w+") do |f| + File.open(temporary_path, "a+") do |f| f.flock(File::LOCK_EX) _fetch f.flock(File::LOCK_UN) |
