490598d3b0bd8599908253ece43d519d5772b5e9
lrnassar
  Mon Feb 14 15:21:42 2022 -0800
Adding change between otto running script in hive vs tree, refs Jonathan

diff --git src/hg/utils/otto/omim/checkOmimUpload.sh src/hg/utils/otto/omim/checkOmimUpload.sh
index 88d2313..af7363b 100755
--- src/hg/utils/otto/omim/checkOmimUpload.sh
+++ src/hg/utils/otto/omim/checkOmimUpload.sh
@@ -20,31 +20,31 @@
 #	this is where we are going to work
 if [ ! -d "${WORKDIR}" ]; then
     echo "ERROR in OMIM release watch, Can not find the directory:     ${WORKDIR}" 
 #    echo "ERROR in OMIM release watch, Can not find the directory:
 #    ${WORKDIR}" \
 #	| mail -s "ERROR: OMIM watch" ${DEBUG_EMAIL}
     exit 255
 fi
 
 cd "${WORKDIR}"/upload
 
 rm -f omimGene2.date omimAvSnp.date
 touch omimGene2.date omimAvSnp.date
 hgsqlTableDate hg19 omimGene2 omimGene2.date
 hgsqlTableDate hg19 omimAvSnp omimAvSnp.date
-if [ ! omimGene2.date -nt upload.omim2.date -a ! omimAvSnp.date -nt upload.omimAvSnp.date ]
+if [ ! omimGene2.date -nt upload.omim2.date -a ! omimAvSnp.date -nt omimAvSnp.date ]
 then
     echo "No new table."
     exit 0;
 fi
 echo doing upload
 
 # assumes hg18 and hg19 have the same tables
 hgsql -h hgwbeta -N -e "SHOW TABLES LIKE 'omim%' " hg19 > omimTables
 rm -f omimTableDump.tar omimTableDump.tar.gz
 
 for db in hg18 hg19 hg38
 do
     for table in `cat omimTables`
     do
 #	echo $db.$table.tab >> pushList