Thus said "Andy Bradford" on 07 Oct 2014 00:21:48 -0600: > fossil sync >/dev/null && fossil update -n | grep '^changes:' | grep -v > 'None. Already up-to-date' && { > fossil update 2>&1 | mail -s 'Fossil update' m...@he.re > }
Perhaps something that matches a positive would be better: fossil sync >/dev/null && fossil update -n | grep '^changes:.*files modified\.' && { fossil update 2>&1 | mail -s 'Fossil update' m...@he.re } Or if you're running from cron, and cron is correctly figured, the mail command is superfluous: fossil sync >/dev/null && fossil update -n | grep '^changes:.*files modified\.' && fossil update 2>&1 Andy -- TAI64 timestamp: 40000000543388b9 _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users