# ou bien si c'est root
if `id -Gn | grep -qw admin` || test `id -u` -eq 0; then
test -x /usr/bin/git -a -d /.git && (cd / ; sudo /usr/bin/git status -a) |
- /bin/sed -e '1{/^nothing to commit/d}'
+ /bin/sed -e '1{/^# On branch /d};2{/^nothing to commit/d}'
# deux variables indispensables à cause d'un bogue de git avec la racine
# disons que les admins ne gèrent rien d'autre… au pire, .bash_profile !
GIT_DIR=/.git
#!/bin/sh
recipients="root+git" # adresse pour l'envoi du mail
+PATH="/bin:/usr/bin"
+export PATH
+
if [ "$1" != "cron" ]; then
echo "Ce script n'est pas fait pour être lancé manuellement mais via cron."
exit -1
trap "rm -f \"$tempfile\"" 0 1 2 3 15
(cd / ; /usr/bin/git status -a) |
-sed -e '/^nothing to commit/d' -e 's/^#//' >"$tempfile"
+sed -e '1{/^# On branch /d};2{/^nothing to commit/d};s/^#//' >"$tempfile"
if [ -s "$tempfile" ]; then
(
+auf-git-etc (1.5.1) stable; urgency=low
+
+ * Ooops… Le message de statut aussi a changé… Allez hop : silence !
+
+ -- Progfou <jean-christophe.andre@auf.org> Fri, 20 Feb 2009 17:36:58 +0700
+
auf-git-etc (1.5.0) stable; urgency=low
* Premier jet d'une version "Lenny compatible" (avec git 1.5).