dotfiles

beau's configuration files
git clone https://git.beauhilton.com/dotfiles.git
Log | Files | Refs | README

checkup (542B)


      1 #!/usr/bin/env sh
      2 # Syncs repositories and downloads updates, meant to be run as a cronjob.
      3 
      4 ping -q -c 1 1.1.1.1 > /dev/null || exit
      5 
      6 sudo pacman -Syyuw --noconfirm || notify-send "Error downloading updates.
      7 
      8 Check your internet connection, if pacman is already running, or run update manually to see errors."
      9 
     10 if pacman -Qu | grep -v "\[ignored\]"
     11 then
     12 	notify-send "🎁 Repository Sync" "Updates available. Click statusbar icon (📦) for update."
     13 else
     14 	notify-send "📦 Repository Sync"  "Sync complete. No new packages for update."
     15 fi