Skip to content

Commit

Permalink
Remove some newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Aug 28, 2024
1 parent 33aaff9 commit ecdc728
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/sif_database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -39,18 +37,15 @@ 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
echo "SIF file for ${problem} is MISSING"
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"
Expand Down

0 comments on commit ecdc728

Please sign in to comment.