This commit is contained in:
Stephan Raabe
2023-03-02 09:45:31 +01:00
parent 3a7a8b20ac
commit 8a799fc241
5 changed files with 34 additions and 3 deletions
Executable
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
pacmanUpdates=$(pacman -Syup | grep http:// | wc -l)
aurUpdates=$(yaourt -Qua | grep aur | wc -l)
if [ "$pacmanUpdates" -gt 0 ]; then
updateCount="$pacmanUpdates"
elif [ "$aurUpdates" -gt 0 ]; then
updateCount="A$aurUpdates"
else
updateCount=0
fi
echo "$updateCount" > /tmp/updateCount