Add scripts

This commit is contained in:
LordMathis
2018-05-25 23:47:28 +02:00
parent 54e3151d0c
commit c36f047564
4 changed files with 156 additions and 0 deletions

12
bin/updates.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
updates_arch=$(checkupdates | wc -l)
updates_aur=$(pacaur -k | wc -l)
updates=$(("$updates_arch" + "$updates_aur"))
if [ "$updates" -gt 0 ]; then
echo " $updates"
else
echo ""
fi