aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat/hbc/cache.rb
blob: 34221fcf1d4898a87951013bc18eb90dfeab5313 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module Hbc
  module Cache
    module_function

    def delete_legacy_cache
      legacy_cache = HOMEBREW_CACHE.join("Casks")
      return unless legacy_cache.exist?

      ohai "Deleting legacy cache at #{legacy_cache}"
      FileUtils.remove_entry_secure(legacy_cache)
    end
  end
end