Latest
This commit is contained in:
parent
33c50c335e
commit
28ef91a8f7
2 changed files with 6 additions and 5 deletions
|
@ -17,9 +17,10 @@ fi
|
|||
|
||||
### Bash-it completions / plugins
|
||||
if command -v powerline > /dev/null && [ -f "$HOME/.bashrc" ]; then
|
||||
logg info 'Running `source ~/.bashrc`'
|
||||
source ~/.bashrc
|
||||
logg success 'Imported the `~/.bashrc` profile'
|
||||
# These three lines are probably not needed:
|
||||
# logg info 'Running `source ~/.bashrc`'
|
||||
# source ~/.bashrc
|
||||
# logg success 'Imported the `~/.bashrc` profile'
|
||||
if command -v bash-it > /dev/null; then
|
||||
if [ -n "$BASH_IT" ]; then
|
||||
cd "$BASH_IT" || logg warn "The $BASH_IT directory does not exist"
|
||||
|
|
|
@ -760,13 +760,13 @@ async function beforeInstall(packageManager) {
|
|||
if (!brewUpdated) {
|
||||
brewUpdated = true
|
||||
try {
|
||||
runCommand('Running brew update / upgrade', `brew update && brew upgrade --force`)
|
||||
runCommand('Running brew update / upgrade', `brew update && brew upgrade --cask --greedy && brew upgrade --force`)
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
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', 'brew tap --repair && brew update && brew upgrade')
|
||||
runCommand('Repairing taps and retrying brew update / upgrade', 'brew tap --repair && brew update && brew upgrade --cask && brew upgrade')
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
log('error', 'Homebrew', 'Failed both attempts to run brew update / upgrade')
|
||||
|
|
Loading…
Reference in a new issue