X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=scripts%2Fgit-mirror.sh;h=ff07de27c095397b46e85328186a36141bb72492;hb=17308fd16c8e790ecd822a69f70f0a8a68f62ac0;hp=0578e59d9d697832bd87b6c9eb325c32577a6995;hpb=7960461f9dfdd70d0a0fe173e4326d19e0b12830;p=infrastructure.git 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