mirror of
https://github.com/The-Repo-Club/DotFiles.git
synced 2025-02-24 05:09:52 -05:00
20 lines
376 B
Bash
Executable File
20 lines
376 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#source https://github.com/x70b1/polybar-scripts
|
|
|
|
|
|
if ! updates_arch=$(checkupdates 2> /dev/null | wc -l); then
|
|
updates_arch=0
|
|
fi
|
|
|
|
if ! updates_aur=$(checkupdates-aur 2> /dev/null | wc -l); then
|
|
updates_aur=0
|
|
fi
|
|
|
|
updates=$(("$updates_arch" + "$updates_aur"))
|
|
|
|
if [ "$updates" -gt 0 ]; then
|
|
echo " $updates Updates"
|
|
else
|
|
echo "0 Updates"
|
|
fi
|