mas/script/brew_release_validate
2020-05-25 07:40:08 -06:00

19 lines
758 B
Bash
Executable file

#!/bin/bash
#
# script/brew_release_validate
# mas
#
# Validates the mas formula
# https://github.com/Homebrew/homebrew-core/blob/master/CONTRIBUTING.md#to-contribute-a-fix-to-the-foo-formula
#
# 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
brew uninstall --force mas
brew install --build-from-source mas
brew test mas
brew audit --strict mas
brew style mas