commit 0f955e26ac77cbbf403934459998ac0fbaf7c15f
parent 50fdeec1938db4e9fd7b6969f8b5f8384f0da94f
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Mon, 17 Apr 2017 18:44:38 +0200
add date
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/svn-poll b/svn-poll
@@ -19,6 +19,7 @@ FILE="$DIR/rev"
MUTEFILE="$DIR/muted"
ERRORS="$DIR/errors"
TEMP=$(mktemp)
+DATE=$(date)
mkdir -p "$DIR"
@@ -31,7 +32,7 @@ if ! [[ $LATEST =~ $re ]] ; then
# log the error
cat "$TEMP" >> "$ERRORS"
rm "$TEMP"
- echo "problem when fetching latest revision: got $LATEST" >>"$ERRORS"
+ echo "$DATE: problem when fetching latest revision: got $LATEST" >>"$ERRORS"
# now, should we whine...
NERRORS=$(cat "$ERRORS" | wc -l)
if [ $NERRORS -gt $MAX_ERRORS ]