Advertisement
HiImTye

.tconk-scripts-timeCheckUpdates.sh

Apr 8th, 2014
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.36 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. settings="$HOME/Launchers"/.tconk-settings-general
  4. # load variables from files
  5. . $settings
  6.  
  7. if [ -f "/usr/bin/aptitude" -o -f "/usr/bin/aptitude-curses" ]; then
  8.  Updates=$(aptitude search "~U" | wc -l | tail)
  9. elif [ -f "/usr/bin/pacman" ]; then
  10.  Updates=$(cat /tmp/updateCount)
  11. else
  12.  Updates=""
  13. fi
  14. echo $Updates > $tmpfolder/time-updates
  15. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement