fdac2dc1463d6e72c0c360ecbbaf12c2add0fe0a
kuhn
  Thu Dec 20 15:04:05 2012 -0800
grammar tweak in output
diff --git src/utils/qa/checkAllStaticLinks.csh src/utils/qa/checkAllStaticLinks.csh
index 5372ca9..1294aad 100755
--- src/utils/qa/checkAllStaticLinks.csh
+++ src/utils/qa/checkAllStaticLinks.csh
@@ -61,31 +61,36 @@
 # foreach dir ( 0 goldenPath.help test ) 
 foreach dir (`cat $pathfile`)
   set dir=`echo $dir | sed "s@/@.@g"`
   if ( $dir == 0 )  then
     set dir=htdocs
   endif
   cat $dir.err                                        >> $outfile
   echo "==========================================\n" >> $outfile
   tail -20 $dir.err | grep -q "found no files with errors"
   if ( $status ) then
     @ errors = $errors + 1
   endif
   rm -f $dir.err
   @ errdirs = $errdirs + 1
 end
+
+if ( $errdirs == 1 ) then
+  echo " checked $errdirs directory"                  >> $outfile
+else
 echo " checked $errdirs directories"                >> $outfile
+endif
 echo " found $errors with errors"                   >> $outfile
 
 # allow two levels of backup
 set genecats = "/usr/local/apache/htdocs-genecats/qa/test-results/staticLinks"
 
 if ( -e $genecats/$outfile ) then
   if ( -e $genecats/${outfile}.bak ) then
     # echo "there's a bak file"
     # echo "making a bak2 file"
     mv $genecats/${outfile}.bak $genecats/${outfile}.bak2
   endif
     # echo "making a bak file"
     mv $genecats/$outfile $genecats/${outfile}.bak
 endif
 # echo "moving file to genecats dir"