src/utils/qa/countPerChrom.csh 1.10

1.10 2009/05/28 17:09:38 kuhn
added error-checking for case where 4th parameter is no good. thanks katrina
Index: src/utils/qa/countPerChrom.csh
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/qa/countPerChrom.csh,v
retrieving revision 1.9
retrieving revision 1.10
diff -b -B -U 4 -r1.9 -r1.10
--- src/utils/qa/countPerChrom.csh	22 May 2009 21:58:32 -0000	1.9
+++ src/utils/qa/countPerChrom.csh	28 May 2009 17:09:38 -0000	1.10
@@ -64,11 +64,17 @@
   set oldDb=$argv[3]
   set machineOut="(${argv[4]})"
   if ( $argv[4] == "hgwbeta" ) then
     set host2="hgsql -h $sqlbeta"
-  endif
+  else 
   if ( $argv[4] == "RR" ) then
     set host2="mysql -h genome-mysql -u genome -A"
+    else
+      echo
+      echo "4th parameter must be RR or hgwbeta"
+      echo
+      $0
+      exit 1
   endif
 endif
 
 # echo "db = $db"