mirror of
https://github.com/G2-Games/welcome.sh.git
synced 2025-04-19 05:22:53 -05:00
Added Homebrew support
This commit is contained in:
parent
457788b3fe
commit
9fbcf0fb6d
1 changed files with 5 additions and 2 deletions
|
@ -112,14 +112,17 @@ updates () {
|
||||||
fedora=$((fedora-1))
|
fedora=$((fedora-1))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v brew &> /dev/null; then
|
||||||
|
brew=$(brew outdated 2> /dev/null | wc -l)
|
||||||
|
fi
|
||||||
|
|
||||||
# Check for Flatpak
|
# Check for Flatpak
|
||||||
if command -v flatpak &> /dev/null && [ "$flatpakupd" = "on" ]; then
|
if command -v flatpak &> /dev/null && [ "$flatpakupd" = "on" ]; then
|
||||||
flatpak=$(flatpak remote-ls --updates 2> /dev/null | wc -l)
|
flatpak=$(flatpak remote-ls --updates 2> /dev/null | wc -l)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Add all update counts together
|
# Add all update counts together
|
||||||
updates=$(($debian + $arch + fedora + $flatpak))
|
updates=$(($debian + $arch + fedora + $flatpak + $brew))
|
||||||
|
|
||||||
# Check the update amounts and print them out
|
# Check the update amounts and print them out
|
||||||
if [ $updates -eq 1 ]; then
|
if [ $updates -eq 1 ]; then
|
||||||
|
|
Loading…
Reference in a new issue