ignore "file not found"
authorBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Sat, 18 Dec 2010 12:19:29 +0000 (13:19 +0100)
committerBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Sat, 18 Dec 2010 12:19:29 +0000 (13:19 +0100)
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