diff --git a/tests/scripts/docs_check_outputs.sh b/tests/scripts/docs_check_outputs.sh index 0bf531a..fef407e 100644 --- a/tests/scripts/docs_check_outputs.sh +++ b/tests/scripts/docs_check_outputs.sh @@ -13,10 +13,10 @@ missing=0 rm -f "$missing_file" -for f in $files; do +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 diff --git a/tests/scripts/publication.sh b/tests/scripts/publication.sh index f872c9d..76052e4 100644 --- a/tests/scripts/publication.sh +++ b/tests/scripts/publication.sh @@ -116,10 +116,10 @@ missing=0 rm -f "$missing_file" -for f in $files; do +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