mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-21 03:04:38 +10:00
Restructing the entire dotfile repo!
This commit is contained in:
20
.config/polybar/scripts/check-all-updates.sh
Executable file
20
.config/polybar/scripts/check-all-updates.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
#source https://github.com/x70b1/polybar-scripts
|
||||
|
||||
|
||||
if ! updates_arch=$(checkupdates 2> /dev/null | wc -l ); then
|
||||
updates_arch=0
|
||||
fi
|
||||
|
||||
# if ! updates_aur=$(cower -u 2> /dev/null | wc -l); then
|
||||
if ! updates_aur=$(trizen -Su --aur --quiet | wc -l); then
|
||||
updates_aur=0
|
||||
fi
|
||||
|
||||
updates=$(("$updates_arch" + "$updates_aur"))
|
||||
|
||||
if [ "$updates" -gt 0 ]; then
|
||||
echo " $updates"
|
||||
else
|
||||
echo "0"
|
||||
fi
|
||||
Reference in New Issue
Block a user