lib/bcupgrade/cask.rb in bcupgrade-0.3.1 vs lib/bcupgrade/cask.rb in bcupgrade-0.3.2
- old
+ new
@@ -18,10 +18,10 @@
@installed_casks.each do |name|
cask_info = BrewCask.info(name)
version_number = trim_latest_version(cask_info)
- string = "#{BrewCask::CASKROOM_PATH}/#{name}/#{version_number}"
+ string = "/#{name}/#{version_number}"
latest_version = cask_info.include?(string) ? nil : version_number
if latest_version
puts "#{name} / #{latest_version}"
update_casks.push(name)