diff --git a/.github/workflows/sif_database.yml b/.github/workflows/sif_database.yml index 0c5c506..b92120a 100644 --- a/.github/workflows/sif_database.yml +++ b/.github/workflows/sif_database.yml @@ -26,11 +26,9 @@ jobs: # Read the CLASSF.DB file and store the problem names in an array mapfile -t db_problems < <(awk '{print $1}' CLASSF.DB) - # Initialize counters for missing files and missing DB entries - missing_sif_count=0 missing_db_count=0 - + missing_sif_count=0 # Check if each SIF file has an entry in CLASSF.DB for file in *.SIF; do problem_name="${file%.SIF}" @@ -39,7 +37,6 @@ jobs: let missing_db_count++ fi done - # Check if each entry in CLASSF.DB has a corresponding SIF file for problem in "${db_problems[@]}"; do if [[ ! -f "${problem}.SIF" ]]; then @@ -47,10 +44,8 @@ jobs: let missing_sif_count++ fi done - echo "Total number of SIF files without DB entries: ${missing_db_count}" echo "Total number of DB entries without SIF files: ${missing_sif_count}" - # Exit with error if any issues were found if [ "${missing_db_count}" -ne 0 ] || [ "${missing_sif_count}" -ne 0 ]; then echo "Error: Mismatch between CLASSF.DB entries and SIF files"