ignore "file not found"
[infrastructure.git] / scripts / git-mirror.sh
index 0578e59..ff07de2 100755 (executable)
@@ -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