Skip to content

Commit 9b707f5

Browse files
authored
Merge pull request #161 from daavid00/dev
Small POSIX fix
2 parents e4e06ad + beca830 commit 9b707f5

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tests/scripts/docs_check_outputs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ missing=0
1414

1515
rm -f "$missing_file"
1616

17-
for f in $files; do
17+
printf '%s\n' "$files" | while IFS= read -r f; do
18+
[ -z "$f" ] && continue
1819
if [ ! -f "$f" ]; then
1920
echo "$f" >> "$missing_file"
20-
missing=$((missing + 1))
2121
fi
2222
done
2323

tests/scripts/paper_convergence.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ missing=0
4646

4747
rm -f "$missing_file"
4848

49-
for f in $files; do
49+
printf '%s\n' "$files" | while IFS= read -r f; do
50+
[ -z "$f" ] && continue
5051
if [ ! -f "$f" ]; then
5152
echo "$f" >> "$missing_file"
52-
missing=$((missing + 1))
5353
fi
5454
done
5555

0 commit comments

Comments
 (0)