🐛 Stability fixes for bottle script

This commit is contained in:
Ben Chatelain 2020-09-07 10:39:42 -06:00
parent 76f72503ed
commit 903b538f40

View file

@ -26,7 +26,7 @@ fi
# Uninstall if still found on path
if command -v mas > /dev/null; then
script/uninstall
script/uninstall || true # ignore failure
fi
# Purge the Carthage cache to avoid this error from Homebrew sandboxing:
@ -34,6 +34,11 @@ fi
# 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
# Uninstall carthage via Mint
if command -v mint > /dev/null; then
mint uninstall carthage
fi
# Build the formula
brew install --build-bottle mas