mirror of
https://github.com/G2-Games/welcome.sh.git
synced 2025-04-19 13:32:53 -05:00
Polished Homebrew support
This commit is contained in:
parent
9fbcf0fb6d
commit
5215f964ae
1 changed files with 3 additions and 1 deletions
|
@ -85,6 +85,7 @@ updates () {
|
|||
debian=0
|
||||
arch=0
|
||||
fedora=0
|
||||
brew=0
|
||||
flatpak=0
|
||||
|
||||
# Check for updates from different places... wonder if there's a better way
|
||||
|
@ -112,6 +113,7 @@ updates () {
|
|||
fedora=$((fedora-1))
|
||||
fi
|
||||
|
||||
# Check for Brew updates
|
||||
if command -v brew &> /dev/null; then
|
||||
brew=$(brew outdated 2> /dev/null | wc -l)
|
||||
fi
|
||||
|
@ -122,7 +124,7 @@ updates () {
|
|||
fi
|
||||
|
||||
# Add all update counts together
|
||||
updates=$(($debian + $arch + fedora + $flatpak + $brew))
|
||||
updates=$(($debian + $arch + $fedora + $flatpak + $brew))
|
||||
|
||||
# Check the update amounts and print them out
|
||||
if [ $updates -eq 1 ]; then
|
||||
|
|
Loading…
Reference in a new issue