From: Barış Metin Date: Sat, 18 Dec 2010 12:19:29 +0000 (+0100) Subject: ignore "file not found" X-Git-Tag: foo~33 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=17308fd16c8e790ecd822a69f70f0a8a68f62ac0;p=infrastructure.git ignore "file not found" --- diff --git a/scripts/git-mirror.sh b/scripts/git-mirror.sh index 0578e59..ff07de2 100755 --- a/scripts/git-mirror.sh +++ b/scripts/git-mirror.sh @@ -168,7 +168,7 @@ done # is the stamp older than an hour ? # in minutes GRACE=60 -is_old=$(find $RUNNING_FILE -mmin +$GRACE) +is_old=$(find $RUNNING_FILE -mmin +$GRACE 2> /dev/null) if [ -n "$is_old" ] ; then msg "$RUNNING_FILE is older than $GRACE minutes - removing" rm -f $RUNNING_FILE