Added Homebrew support

This commit is contained in:
G2-Games 2022-09-18 03:34:08 -05:00
parent 457788b3fe
commit 9fbcf0fb6d

View file

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