Skip to content

Commit d900040

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

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/lint_urls.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,12 @@ done < <(
7878
)
7979

8080
for pid in "${pids[@]}"; do
81-
if ! wait "$pid" 2>/dev/null; then
82-
[ "$?" -eq 1 ] && status=1
83-
fi
81+
wait "$pid" 2>/dev/null
82+
case $? in
83+
0) ;;
84+
1) status=1 ;;
85+
*) exit $? ;;
86+
esac
8487
done
8588

8689
exit $status

0 commit comments

Comments
 (0)