diff --git a/tests/scripts/docs_check_outputs.sh b/tests/scripts/docs_check_outputs.sh index 8589dfa..c0a184d 100644 --- a/tests/scripts/docs_check_outputs.sh +++ b/tests/scripts/docs_check_outputs.sh @@ -51,6 +51,7 @@ test_outputs/docs_generic_deck/spe10_model2_permz_i,4,k_t0.png " missing_file="test_outputs/missing_docs_files.txt" +missing=0 rm -f "$missing_file" @@ -58,15 +59,10 @@ printf '%s\n' "$files" | while IFS= read -r f; do [ -z "$f" ] && continue if [ ! -f "$f" ]; then echo "$f" >> "$missing_file" + missing=$((missing + 1)) fi done -if [ -f "$missing_file" ]; then - missing=$(wc -l < "$missing_file") -else - missing=0 -fi - if [ "$missing" -eq 0 ]; then echo "All figures and files exist." return 0