0eab84a29c2787d3326523d37263cc1eddaaadfc rhead Fri Jul 29 15:07:46 2011 -0700 Made a grep check for a whole word match. The hg19Patch5 database was wreaking havoc when this was run on hg19. diff --git src/utils/qa/checkSync.csh src/utils/qa/checkSync.csh index b633b60..e169679 100755 --- src/utils/qa/checkSync.csh +++ src/utils/qa/checkSync.csh @@ -69,31 +69,31 @@ echo echo ' the fourth argument must be "times"\n' echo ${0}: $0 exit 1 endif endif # get tablenames for stripping out genbank rm -f genbank.local$$ cat $GENBANK | sed -e 's/^^//; s/.$//' > genbank.local$$ echo gbLoaded >> genbank.local$$ # set active=`hgsql -h $sqlbeta -Ne "SELECT name FROM dbDb where active = 1" hgcentralbeta \ - | grep $db` + | grep -w $db` foreach machine ( $mach1 $mach2 ) # check if db is for active assembly on beta # (if not, can't do real-time check) if ( $db == $active ) then # get the full table status in real time getTableStatus.csh $db $machine > $machine.tmp$$ if ( $status ) then cat $machine.tmp$$ rm $machine.tmp$$ exit 1 endif else # db is either not active, or not an assembly. must use status dumps. cp `getRRdumpfile.csh $db $machine` $machine.tmp$$