Skip to content

Instantly share code, notes, and snippets.

@mos3abof
Last active June 25, 2019 16:55
Show Gist options
  • Save mos3abof/41ed52a169696f33318a6111e8f048b7 to your computer and use it in GitHub Desktop.
Save mos3abof/41ed52a169696f33318a6111e8f048b7 to your computer and use it in GitHub Desktop.
Fix qt @ version 5.5, after an accidental brew upgrade
#!/usr/bin/env bash
cd $( brew --prefix )/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
if [[ -e qt@5.5.rb ]]; then
mv qt@5.5.rb qt@5.5.rb.bkp
fi
wget -q https://raw.githubusercontent.com/Homebrew/homebrew-core/9ba3d6ef8891e5c15dbdc9333f857b13711d4e97/Formula/qt@5.5.rb
# delete line 25
sed '25d' Formula/qt@5.5.rb | tee > Formula/qt@5.5.rb
brew install qt@5.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment