Skip to content

Commit

Permalink
Properly write error and exit script when version tag not found
Browse files Browse the repository at this point in the history
  • Loading branch information
pverscha committed Aug 13, 2024
1 parent 58bb834 commit ad038ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/build_database.sh
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,7 @@ 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. Exiting"
exit 1
errorAndExit "No valid version tag found for UniProt."
fi

# Convert YYYY_MM to YYYY.MM
Expand Down

0 comments on commit ad038ad

Please sign in to comment.