Latest
This commit is contained in:
parent
df8c1a2510
commit
a7d05ee4c2
2 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@ if command -v brew > /dev/null; then
|
|||
export PATH="$(brew --prefix)/opt/coreutils/libexec/gnubin:$PATH"
|
||||
export PATH="$(brew --prefix)/opt/gnu-indent/libexec/gnubin:$PATH"
|
||||
export PATH="$(brew --prefix)/opt/gnu-sed/libexec/gnubin:$PATH"
|
||||
export PATH="$(brew --prefix)/opt/gnu-tar/libexec/gnubin:$PATH"
|
||||
fi
|
||||
|
||||
{{- end }}
|
||||
|
|
|
@ -766,7 +766,7 @@ async function beforeInstall(packageManager) {
|
|||
log('error', 'Homebrew', 'Failed running brew update / upgrade')
|
||||
log('info', 'Homebrew', 'Running brew tap --repair and trying again')
|
||||
try {
|
||||
runCommand('Repairing taps and retrying brew update / upgrade', 'rm -rf $(brew --cache) && brew tap --repair && brew update && brew upgrade --cask --greedy && brew upgrade --force --greedy')
|
||||
runCommand('Repairing taps and retrying brew update / upgrade', 'sudo rm -rf $(brew --cache) && brew tap --repair && brew update && brew upgrade --cask --greedy && brew upgrade --force --greedy')
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
log('error', 'Homebrew', 'Failed both attempts to run brew update / upgrade')
|
||||
|
|
Loading…
Reference in a new issue