From 06a9f94fc8e4ce4139be8427553a126a083c7c5a Mon Sep 17 00:00:00 2001 From: krempp Date: Fri, 16 Jun 2000 22:13:03 +0200 Subject: [PATCH] quel con. javais oubli que le test se basait sur la taille de tempF2.. -> j'ai repris a.. darcs-hash:20000616201303-92525-7181a18c49c7b425c818bcf74ce1e22bb8c7b017.gz --- mailWarn_dirtyEtc.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mailWarn_dirtyEtc.sh b/mailWarn_dirtyEtc.sh index 197bc83d..2be65e6f 100755 --- a/mailWarn_dirtyEtc.sh +++ b/mailWarn_dirtyEtc.sh @@ -18,12 +18,16 @@ cd /etc /usr/bin/cvs -q -d /usr/cvs-rep status /etc/ /usr/scripts/ >$tempF3 grep "Status" $tempF3 |grep -v "Up-to-date" >$tempF2 +if test -s $tempF2; then + dirtyCVS="carrement" +fi + echo -ne "\nDetails des Locally modified files\n" >>$tempF2 echo -ne "----------------------------------\n" >>$tempF2 grep -A8 "Locally" $tempF3 >> $tempF2 if test -n "$1"; - then test -s $tempF2 && cat $tempF $tempF2 | sendmail "$1"; + then test -n $dirtyCVS && cat $tempF $tempF2 | sendmail "$1"; else cat $tempF $tempF2; fi