This commit is contained in:
Brian Zalewski 2023-07-18 17:58:34 +00:00
parent df8c1a2510
commit a7d05ee4c2
2 changed files with 2 additions and 1 deletions

View file

@ -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/coreutils/libexec/gnubin:$PATH"
export PATH="$(brew --prefix)/opt/gnu-indent/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-sed/libexec/gnubin:$PATH"
export PATH="$(brew --prefix)/opt/gnu-tar/libexec/gnubin:$PATH"
fi fi
{{- end }} {{- end }}

View file

@ -766,7 +766,7 @@ async function beforeInstall(packageManager) {
log('error', 'Homebrew', 'Failed running brew update / upgrade') log('error', 'Homebrew', 'Failed running brew update / upgrade')
log('info', 'Homebrew', 'Running brew tap --repair and trying again') log('info', 'Homebrew', 'Running brew tap --repair and trying again')
try { 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) { } catch (e) {
console.log(e) console.log(e)
log('error', 'Homebrew', 'Failed both attempts to run brew update / upgrade') log('error', 'Homebrew', 'Failed both attempts to run brew update / upgrade')