0b612ae13030153b427d971498a9a31be06e1fa6 gperez2 Mon Jun 12 14:33:45 2023 -0700 Changing code syntax from == to = reported by a user, refs #31377 diff --git src/utils/userApps/fetchChromSizes src/utils/userApps/fetchChromSizes index d58ddb8..5338dcc 100755 --- src/utils/userApps/fetchChromSizes +++ src/utils/userApps/fetchChromSizes @@ -16,31 +16,31 @@ Example: fetchChromSizes hg38 > hg38.chrom.sizes\n" 1>&2 exit 255 } DB=$1 export DB if [ -z "${DB}" ]; then usage fi DONE=0 export DONE url="http://hgdownload.soe.ucsc.edu/goldenPath/${DB}/bigZips/${DB}.chrom.sizes" -if [ "$DB" == "hg19" -o "$DB" == "hg38" ] ; then +if [ "$DB" = "hg19" -o "$DB" = "hg38" ] ; then printf "INFO: Using latest patch release of genome for hg19/hg38\n" 1>&2 url="http://hgdownload.soe.ucsc.edu/goldenPath/${DB}/bigZips/latest/${DB}.chrom.sizes" fi printf "INFO: trying CURL ${CURL} for database ${DB}\n" 1>&2 printf "url: %s\n" "${url}" 1>&2 tmpResult=${DB}.tmp.sizes$$ curl ${url} \ -s > ${tmpResult} 2> /dev/null if [ $? -ne 0 -o ! -s "${tmpResult}" ]; then printf "WARNING: curl command failed\n" 1>&2 rm -f "${tmpResult}" else cat ${tmpResult} rm -f "${tmpResult}"