File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -77,16 +77,14 @@ wget -q "${RELEASE_NOTES_URL}" 2>/dev/null || {
7777
7878if [ -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} "
9088fi
9189
9290# Download RNAcentral FASTA file
You can’t perform that action at this time.
0 commit comments