mirror of
https://github.com/lordmathis/dotfiles.git
synced 2025-11-06 17:54:25 +00:00
Add scripts
This commit is contained in:
12
bin/updates.sh
Executable file
12
bin/updates.sh
Executable 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
|
||||
Reference in New Issue
Block a user