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 ### Bash-it completions / plugins
if command -v powerline > /dev/null && [ -f "$HOME/.bashrc" ]; then if command -v powerline > /dev/null && [ -f "$HOME/.bashrc" ]; then
logg info 'Running `source ~/.bashrc`' # These three lines are probably not needed:
source ~/.bashrc # logg info 'Running `source ~/.bashrc`'
logg success 'Imported the `~/.bashrc` profile' # source ~/.bashrc
# logg success 'Imported the `~/.bashrc` profile'
if command -v bash-it > /dev/null; then if command -v bash-it > /dev/null; then
if [ -n "$BASH_IT" ]; then if [ -n "$BASH_IT" ]; then
cd "$BASH_IT" || logg warn "The $BASH_IT directory does not exist" cd "$BASH_IT" || logg warn "The $BASH_IT directory does not exist"

View file

@ -760,13 +760,13 @@ async function beforeInstall(packageManager) {
if (!brewUpdated) { if (!brewUpdated) {
brewUpdated = true brewUpdated = true
try { 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) { } catch (e) {
console.log(e) console.log(e)
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', '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) { } 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')