Initial commit
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$#" -eq 1 ]; then
|
||||
threshold=$1
|
||||
else
|
||||
threshold=30
|
||||
fi
|
||||
|
||||
arch_updates=$(checkupdates | wc -l)
|
||||
aur_updates=$(aur repo -u | wc -l)
|
||||
|
||||
updates=$(($arch_updates + $aur_updates))
|
||||
|
||||
if [ "$updates" -ge "$threshold" ]; then
|
||||
notify-send "Updates available" "Arch: $arch_updates, AUR: $aur_updates"
|
||||
fi
|
||||
Reference in New Issue
Block a user