From 9fbcf0fb6d26825245aa6b2502e4ec8ee4c6571a Mon Sep 17 00:00:00 2001 From: G2-Games Date: Sun, 18 Sep 2022 03:34:08 -0500 Subject: [PATCH] Added Homebrew support --- welcome.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/welcome.sh b/welcome.sh index f445b26..f71c224 100755 --- a/welcome.sh +++ b/welcome.sh @@ -112,14 +112,17 @@ updates () { fedora=$((fedora-1)) fi + if command -v brew &> /dev/null; then + brew=$(brew outdated 2> /dev/null | wc -l) + fi + # Check for Flatpak if command -v flatpak &> /dev/null && [ "$flatpakupd" = "on" ]; then flatpak=$(flatpak remote-ls --updates 2> /dev/null | wc -l) fi - # Add all update counts together - updates=$(($debian + $arch + fedora + $flatpak)) + updates=$(($debian + $arch + fedora + $flatpak + $brew)) # Check the update amounts and print them out if [ $updates -eq 1 ]; then