Skip to content

Commit 335326f

Browse files
authored
Update lint_urls.sh
1 parent 710082e commit 335326f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/lint_urls.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ done < <(
7878
)
7979

8080
for pid in "${pids[@]}"; do
81-
wait "$pid" 2>/dev/null || [[ $? -eq 1 ]] && status=1
81+
if ! wait "$pid" 2>/dev/null; then
82+
[ "$?" -eq 1 ] && status=1
83+
fi
8284
done
8385

8486
exit $status

0 commit comments

Comments
 (0)