Skip to content

Commit d22ed41

Browse files
Update scripts/search/build_db/build_rna_blast_db.sh
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent d6fbc2a commit d22ed41

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

scripts/search/build_db/build_rna_blast_db.sh

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,14 @@ wget -q "${RELEASE_NOTES_URL}" 2>/dev/null || {
7777

7878
if [ -f "${RELEASE_NOTES}" ]; then
7979
# Try to extract version from release notes (first line usually contains version info)
80-
RELEASE=$(head -1 "${RELEASE_NOTES}" | grep -oE '[0-9]+\.[0-9]+' | head -1 | tr -d '.' || date +%Y%m%d)
81-
if [ -z "${RELEASE}" ] || [ "${RELEASE}" = "$(date +%Y%m%d)" ]; then
82-
RELEASE=$(date +%Y%m%d)
83-
echo "Using date as release identifier: ${RELEASE}"
84-
else
85-
echo "RNAcentral release: ${RELEASE}"
86-
fi
87-
else
80+
RELEASE=$(head -1 "${RELEASE_NOTES}" | grep -oE '[0-9]+\.[0-9]+' | head -1 | tr -d '.')
81+
fi
82+
83+
if [ -z "${RELEASE}" ]; then
8884
RELEASE=$(date +%Y%m%d)
8985
echo "Using date as release identifier: ${RELEASE}"
86+
else
87+
echo "RNAcentral release: ${RELEASE}"
9088
fi
9189

9290
# Download RNAcentral FASTA file

0 commit comments

Comments
 (0)