2017-03-07 00:31:01 +01:00

14 lines
288 B
Ruby

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