buo / homebrew-cask-upgrade

A command line tool for upgrading every outdated app installed by Homebrew Cask
MIT License
2.4k stars 90 forks source link

Error when upgrading a cask with version punctuation #145

Closed ogham closed 4 years ago

ogham commented 4 years ago

I ran brew cu, and after upgrading OmniOutliner, it failed to delete the old version:

==> Upgrading omnioutliner to 5.5.2
==> Downloading https://downloads.omnigroup.com/software/MacOSX/10.14/OmniOutliner-5.5.2.dmg
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'omnioutliner'.
==> Installing Cask omnioutliner
hdiutil: attach: WARNING: ignoring IDME options (obsolete)
Warning: It seems there is already an App at '/Applications/OmniOutliner.app'; overwriting.
==> Removing App '/Applications/OmniOutliner.app'.
==> Moving App 'OmniOutliner.app' to '/Applications/OmniOutliner.app'.
🍺  omnioutliner was successfully installed!
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `rm -rf /usr/local/Caskroom/omnioutliner/5.4.2(n)'

The Cask for OmniOutliner does indeed have a version number of 5.4.2(n), with the brackets in it. I was able to delete the old version manually no problem.