This commit is contained in:
Brian Zalewski 2023-07-11 06:18:04 +00:00
parent 33c50c335e
commit 28ef91a8f7
2 changed files with 6 additions and 5 deletions

View file

@ -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"

View file

@ -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')