6a2fbc6a437200b34de1956a93231d481ddb41b3
hiram
  Wed Apr 8 07:53:45 2020 -0700
correct READE for bigZips/genes/ refs #24547

diff --git src/hg/utils/automation/makeDownloads.pl src/hg/utils/automation/makeDownloads.pl
index 0d30432..d39f03c 100755
--- src/hg/utils/automation/makeDownloads.pl
+++ src/hg/utils/automation/makeDownloads.pl
@@ -1151,36 +1151,43 @@
     &compressScaffoldFiles($runDir, $bossScript);
   }
   $bossScript->add(<<_EOF_
 # Add md5sum.txt and README.txt to each dir:
 foreach d (bigZips $chromGz database liftOver)
   cd $runDir/\$d
   if (\$d != "database" && \$d != "liftOver") then
     if (-s $db.2bit) then
 	md5sum $db.2bit $db.chrom.sizes *.gz > md5sum.txt
     else
 	md5sum *.gz > md5sum.txt
     endif
   endif
   mv $runDir/README.\$d.txt README.txt
 end
-if (-d "$runDir/bigZips/genes") then
+endif
+
+_EOF_
+  );
+  if (scalar(@geneTableList) > 0) {
+  $bossScript->add(<<_EOF_
+mkdir -p $runDir/bigZips/genes
 cd $runDir/bigZips/genes
 mv $runDir/README.bigZipsGenes.txt README.txt
-endif
+
 _EOF_
   );
+  }
 
   # Create README.*.txt files which will be moved into subdirs by the script.
   &makeDatabaseReadme($runDir);
   &makeBigZipsReadme($runDir);
   &makeBigZipsGenesReadme($runDir);
   &makeChromosomesReadme($runDir) if ($chromBased);
   &makeLiftOverReadme($runDir);
 
   $bossScript->execute();
 } # doCompress
 
 
 #########################################################################
 # * step: install [dbHost]