Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- echo "Initializing..."
- if [ $TERM == xterm-256color ]; then
- pac=`/usr/bin/checkupdates | wc -l`
- aur=`/usr/bin/pacaur -Qqu -a | wc -l`
- upd=$(($pac+$aur))
- if [ $upd != "0" ]; then
- clear
- echo "You have updates available!"
- exit 0
- else
- clear
- exit 0
- fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement