Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninstall fails with Error: Cask 'truecrypt' is unreadable: undefined method `undent' for #<String:0x00000000> #6

Open
trinitronx opened this issue Sep 7, 2018 · 0 comments

Comments

@trinitronx
Copy link
Owner

trinitronx commented Sep 7, 2018

Posting here for those googlers who run into this issue:

This is the same issue as upstream Homebrew issue #49716. Upstream recommends this one liner to fix:

find "$(brew --prefix)/Caskroom/"*'/.metadata' -type f -name '*.rb' | xargs grep 'EOS.undent' --files-with-matches | xargs sed -i '' 's/EOS.undent/EOS/'

The regex pattern match here misses one instance in this codebase, and does not work for the truecrypt Cask in this Tap.

Therefore, for this Cask run the following:

find "$(brew --prefix)/Caskroom/"*'/.metadata' -type f -name '*.rb' | xargs grep 'EOPATCH.undent' --files-with-matches | xargs sed -i '' 's/EOPATCH.undent/EOPATCH/'
Repository owner locked as resolved and limited conversation to collaborators Sep 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant