Skip to content

Commit

Permalink
Stop the script if the version of UniProt cannot be determined
Browse files Browse the repository at this point in the history
  • Loading branch information
pverscha committed Aug 13, 2024
1 parent 46e23df commit 58bb834
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build_database.sh
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@ extract_uniprot_version() {

# Check if the version value is not empty
if [[ -z "$version_value" ]]; then
echo "Version tag not found or empty in the XML file. Writing unknown to version file."
version_value="0000_00"
echo "Version tag not found or empty in the XML file. Exiting"
exit 1
fi

# Convert YYYY_MM to YYYY.MM
Expand Down

0 comments on commit 58bb834

Please sign in to comment.