mirror of
https://github.com/mas-cli/mas
synced 2024-11-21 19:23:01 +00:00
🧹 Clean carthage cache in brew_formula_update
This commit is contained in:
parent
014bf6a8be
commit
b1b43bc22d
1 changed files with 6 additions and 1 deletions
|
@ -14,7 +14,7 @@ BREW_CORE_PATH="$(brew --prefix)/Homebrew/Library/Taps/homebrew/homebrew-core/Fo
|
|||
function usage {
|
||||
echo "Usage: brew_formula_bump [v1.0] [sha1_hash]"
|
||||
echo "- version will be inferred using version script if not provided"
|
||||
echo "- sha will be inferred from the curreent commit if not provided"
|
||||
echo "- sha will be inferred from the current commit if not provided"
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
@ -32,6 +32,11 @@ else
|
|||
REVISION=$(git rev-parse HEAD)
|
||||
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
|
||||
|
||||
echo "Checking to see if this update can be a simple bump."
|
||||
diff "Homebrew/mas.rb" "$BREW_CORE_PATH/mas.rb"
|
||||
|
||||
|
|
Loading…
Reference in a new issue