Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #!/usr/bin/env bash
  2. echo "Initializing..."
  3. if [ $TERM == xterm-256color ]; then
  4. pac=`/usr/bin/checkupdates | wc -l`
  5. aur=`/usr/bin/pacaur -Qqu -a | wc -l`
  6. upd=$(($pac+$aur))
  7. if [ $upd != "0" ]; then
  8. clear
  9. echo "You have updates available!"
  10. exit 0
  11. else
  12. clear
  13. exit 0
  14. fi
  15. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement