Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- # check_updates.sh
- #
- # CREATED: 2008-11-03 13:32
- # MODIFIED: 2010-06-02 20:47
- #
- ignore=$(ed -rn '/^\s*IgnorePkg/{s/.*=\s*//; s/\s+/|/gp}' /etc/pacman.conf)
- updates=$(pacman -Qqu | grep -Ev "^($ignore)$" | wc -l)
- [ $updates -gt 0 ] && echo -n " $updates update"
- [ $updates -gt 1 ] && echo "s" || exit 0
Add Comment
Please, Sign In to add comment