📜 Purge Carthage cache and run uninstall from bottle script

This commit is contained in:
Ben Chatelain 2019-04-30 07:09:06 -06:00
parent ba181e21c6
commit 8e82211a3c

View file

@ -24,6 +24,16 @@ if brew ls --versions mas > /dev/null; then
brew uninstall mas brew uninstall mas
fi fi
# Uninstall if still found on path
if command -v mas > /dev/null; then
script/uninstall
fi
# Purge the Carthage cache to avoid this error from Homebrew sandboxing:
# A shell task (/usr/bin/env git checkout --quiet --force 0.15.0 (launched in /Users/ben/Library/Caches/org.carthage.CarthageKit/dependencies/Commandant)) failed with exit code 128:
# fatal: Unable to create '/Users/ben/Library/Caches/org.carthage.CarthageKit/dependencies/Commandant/./index.lock': Operation not permitted
rm -rf ~/Library/Caches/org.carthage.CarthageKit
# Build the formula # Build the formula
brew install --build-bottle mas brew install --build-bottle mas