ec2183ee82650cf882389251cb86403d67569f14
mspeir
  Fri Mar 11 07:41:02 2016 -0800
Minor correction to usage message. Added comment, refs #16553

diff --git src/utils/qa/updateTimesDb.sh src/utils/qa/updateTimesDb.sh
index 90c7aa6..6d3b8d3 100755
--- src/utils/qa/updateTimesDb.sh
+++ src/utils/qa/updateTimesDb.sh
@@ -21,31 +21,31 @@
 #  updateTimesDb.csh
 #
 ############################
 
 ##### Variables #####
 # Set by command-line options
 dbDev=""
 dbBeta=""
 outputFiles=false
 
 ##### Functions #####
 
 showHelp() {
 cat << EOF
 
-Usage: $0 [-hbf] [-d DATABASE DEV] [-b DATABASE BETA]
+Usage: $0 [-hf] [-d DATABASE DEV] [-b DATABASE BETA]
 
 	-h                  Display this help and exit
 	-d DATABASE DEV     Database to check on Dev, e.g. hg19 or hg38.
 	-b DATABASE BETA    Database to check on Beta.
 	-f 		    Output lists of tables on Dev and Beta into 
 			    files.
 
 Shows table update times for an entire database on Dev and Beta. If you wish to
 compare databases between the machines, use the -b option to specify the
 database on Beta.
 
 For example, to compare the same assembly on Dev and Beta
 
 	updateTimesDb.sh -d ce10
 
@@ -70,30 +70,31 @@
 }
 
 ##### Parse command-line input #####
 
 OPTIND=1 # Reset is necessary if getopts was used previously in the script.
 	 # It is a good idea to make this local in a function.
 while getopts "hd:b:f" opt
 do                     
         case $opt in   
                 h)     
                         showHelp
                         exit 0
                         ;;
                 d)     
                         dbDev=$OPTARG
+			# Check if dbBeta is empty before trying to set it
 			if [[ $dbBeta == "" ]]
 			then
 				dbBeta=$dbDev
 			fi
 			;;
                 b)     
                         dbBeta=$OPTARG
                         ;;
                 f)     
                         outputFiles=true
                         ;;
                 '?')   
                         showHelp >&2
                         exit 1
                         ;;