Skip to content

Instantly share code, notes, and snippets.

View miri64's full-sized avatar

Martine Lenders miri64

View GitHub Profile
@miri64
miri64 / pacicron.sh
Created February 1, 2012 16:38 — forked from slomo/pacicron.sh
apticron for arch
#!/bin/bash
# copy this file to /usr/local/sbin (or any other $PATH location)
# add to daily.cron
# ensure exits
VAR_FILE="/var/lib/pacicron/sha"
MAIL_TO="root"
HOST=$(uname -n)
PKGMGR=$(which yaourt || which pacman)
AURFLAG=$(which yaourt &> /dev/null && echo -en "a")